Commit 258afd85 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

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

parents bcc68f96 8e48d4c8
......@@ -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