|
|
|
@ -1491,12 +1491,17 @@ UI.hideUserMediaPermissionsGuidanceOverlay = function () { |
|
|
|
|
* Shows or hides the keyboard shortcuts panel, depending on the current state.' |
|
|
|
|
*/ |
|
|
|
|
UI.toggleKeyboardShortcutsPanel = function() { |
|
|
|
|
let titleKey = 'keyboardShortcuts.keyboardShortcuts'; |
|
|
|
|
let title = APP.translation.translateString(titleKey); |
|
|
|
|
let msg = $('#keyboard-shortcuts').html(); |
|
|
|
|
let buttons = { Close: true }; |
|
|
|
|
if (!messageHandler.isDialogOpened()) { |
|
|
|
|
let titleKey = 'keyboardShortcuts.keyboardShortcuts'; |
|
|
|
|
let title = APP.translation.translateString(titleKey); |
|
|
|
|
let msg = $('#keyboard-shortcuts').html(); |
|
|
|
|
let buttons = { Close: true }; |
|
|
|
|
|
|
|
|
|
messageHandler.openDialog(title, msg, true, buttons); |
|
|
|
|
} else { |
|
|
|
|
messageHandler.closeDialog(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
messageHandler.openDialog(title, msg, true, buttons); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|