Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
42615692
Commit
42615692
authored
Oct 24, 2013
by
Julia Hansbrough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing accessibility bug where users could not tab through on wiki
LMS-1307
parent
30861d0b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
0 deletions
+14
-0
CHANGELOG.rst
+2
-0
lms/djangoapps/course_wiki/editors.py
+1
-0
lms/static/js/wiki/CodeMirror.init.js
+1
-0
lms/static/js/wiki/accessible.js
+10
-0
No files found.
CHANGELOG.rst
View file @
42615692
...
...
@@ -11,6 +11,8 @@ Studio: Change course overview page, checklists, assets, and course staff manage
page URLs to a RESTful interface. Also removed "\listing", which duplicated
"\index".
LMS: Fixed accessibility bug where users could not tab through wiki (LMS-1307)
Blades: When start time and end time are specified for a video, a visual range
will be shown on the time slider to highlight the place in the video that will
be played.
...
...
lms/djangoapps/course_wiki/editors.py
View file @
42615692
...
...
@@ -58,6 +58,7 @@ class CodeMirror(BaseEditor):
js
=
(
"js/vendor/CodeMirror/codemirror.js"
,
"js/vendor/CodeMirror/xml.js"
,
"js/vendor/CodeMirror/mitx_markdown.js"
,
"js/wiki/accessible.js"
,
"js/wiki/CodeMirror.init.js"
,
"js/wiki/cheatsheet.js"
,
)
lms/static/js/wiki/CodeMirror.init.js
View file @
42615692
...
...
@@ -5,6 +5,7 @@ $(document).ready(function() {
matchBrackets
:
true
,
theme
:
"default"
,
lineWrapping
:
true
,
keyMap
:
"accessible"
});
//Store the inital contents so we can compare for unsaved changes
...
...
lms/static/js/wiki/accessible.js
0 → 100644
View file @
42615692
/* By default, CodeMirror turns tabs into indents, which makes it difficult for keyboard-only
users to "tab through" elements on a page. Including this file and setting keyMap to
"accessible" removes the "tab" from CodeMirror's default KeyMap to remedy this problem */
var
keyMap
=
CodeMirror
.
keyMap
.
accessible
=
{
"Left"
:
"goCharLeft"
,
"Right"
:
"goCharRight"
,
"Up"
:
"goLineUp"
,
"Down"
:
"goLineDown"
,
"End"
:
"goLineEnd"
,
"Home"
:
"goLineStartSmart"
,
"PageUp"
:
"goPageUp"
,
"PageDown"
:
"goPageDown"
,
"Delete"
:
"delCharRight"
,
"Backspace"
:
"delCharLeft"
,
"Shift-Tab"
:
"indentAuto"
,
"Enter"
:
"newlineAndIndent"
,
"Insert"
:
"toggleOverwrite"
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment