? should close the dialog if pressed again when its open
Change-Id: I5a3d74b8d31eb96a29bdfc0dfe7c339fab0d36d4
This commit is contained in:
@@ -497,6 +497,12 @@ class GrAppElement extends mixinBehaviors( [
|
|||||||
}
|
}
|
||||||
|
|
||||||
_showKeyboardShortcuts(e) {
|
_showKeyboardShortcuts(e) {
|
||||||
|
// same shortcut should close the dialog if pressed again
|
||||||
|
// when dialog is open
|
||||||
|
if (this.$.keyboardShortcuts.opened) {
|
||||||
|
this.$.keyboardShortcuts.close();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (this.shouldSuppressKeyboardShortcut(e)) { return; }
|
if (this.shouldSuppressKeyboardShortcut(e)) { return; }
|
||||||
this.$.keyboardShortcuts.open();
|
this.$.keyboardShortcuts.open();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user