Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
258afd85
Commit
258afd85
authored
Dec 08, 2017
by
Robert Lyon
Committed by
Gerrit Code Review
Dec 08, 2017
Browse files
Merge "Bug 1733938: Allow 'ESC' key to cancel adding of a block"
parents
bcc68f96
8e48d4c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/js/views.js
View file @
258afd85
...
...
@@ -995,7 +995,7 @@
function
setupPositionBlockDialog
()
{
$
(
'
#addblock .cancel, #addblock .deletebutton
'
).
on
(
'
mousedown keydown
'
,
function
(
e
)
{
if
(
isHit
(
e
))
{
if
(
isHit
(
e
)
||
e
.
keyCode
===
$j
.
ui
.
keyCode
.
ESCAPE
)
{
closePositionBlockDialog
(
e
,
{
'
saved
'
:
false
});
}
});
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment