Commit 8e48d4c8 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1733938: Allow 'ESC' key to cancel adding of a block

When on the 'add block' popup


Change-Id: I8bb59e9bedd5a64e6b59330aa5e2fc2aba3ef639
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 2f96b310
......@@ -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});
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment