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

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

When on the 'add block' popup

behatnotneeded

Change-Id: I8bb59e9bedd5a64e6b59330aa5e2fc2aba3ef639
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
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});
}
});
......
Markdown is supported
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