|
@@ -1491,12 +1491,17 @@ UI.hideUserMediaPermissionsGuidanceOverlay = function () {
|
1491
|
1491
|
* Shows or hides the keyboard shortcuts panel, depending on the current state.'
|
1492
|
1492
|
*/
|
1493
|
1493
|
UI.toggleKeyboardShortcutsPanel = function() {
|
1494
|
|
- let titleKey = 'keyboardShortcuts.keyboardShortcuts';
|
1495
|
|
- let title = APP.translation.translateString(titleKey);
|
1496
|
|
- let msg = $('#keyboard-shortcuts').html();
|
1497
|
|
- let buttons = { Close: true };
|
|
1494
|
+ if (!messageHandler.isDialogOpened()) {
|
|
1495
|
+ let titleKey = 'keyboardShortcuts.keyboardShortcuts';
|
|
1496
|
+ let title = APP.translation.translateString(titleKey);
|
|
1497
|
+ let msg = $('#keyboard-shortcuts').html();
|
|
1498
|
+ let buttons = { Close: true };
|
|
1499
|
+
|
|
1500
|
+ messageHandler.openDialog(title, msg, true, buttons);
|
|
1501
|
+ } else {
|
|
1502
|
+ messageHandler.closeDialog();
|
|
1503
|
+ }
|
1498
|
1504
|
|
1499
|
|
- messageHandler.openDialog(title, msg, true, buttons);
|
1500
|
1505
|
};
|
1501
|
1506
|
|
1502
|
1507
|
/**
|