Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
8f9f3bb9
Commit
8f9f3bb9
authored
11 years ago
by
Greg Price
Browse files
Options
Downloads
Plain Diff
Merge pull request #1883 from edx/gprice/markdown-button-keypress
Activate Markdown editor buttons on keypress
parents
41602e65
b5eeef01
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/static/js/Markdown.Editor.js
+12
-0
12 additions, 0 deletions
lms/static/js/Markdown.Editor.js
with
12 additions
and
0 deletions
lms/static/js/Markdown.Editor.js
+
12
−
0
View file @
8f9f3bb9
...
...
@@ -1377,6 +1377,18 @@
doClick
(
this
);
return
false
;
}
util
.
addEvent
(
button
,
"
keydown
"
,
function
(
event
)
{
var
keyCode
=
event
.
charCode
||
event
.
keyCode
;
if
(
keyCode
==
32
||
keyCode
==
13
)
{
if
(
event
.
preventDefault
)
{
event
.
preventDefault
();
}
if
(
window
.
event
)
{
window
.
event
.
returnValue
=
false
;
}
doClick
(
button
);
}
})
}
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment