Keyboard shortcuts: Add method to retrieve info about a particular shortcut

This commit is contained in:
Molkobain
2021-04-13 11:25:40 +02:00
parent 0816d27456
commit 923a4048d3
3 changed files with 45 additions and 12 deletions

View File

@@ -185,7 +185,7 @@ class iTopWebPage extends NiceWebPage implements iTabbedPage
*/
protected function InitializeKeyboardShortcuts(): void
{
$aShortcuts = utils::GetKeyboardShortcutPref();
$aShortcuts = utils::GetAllKeyboardShortcutsPrefs();
$sShortcuts = json_encode($aShortcuts);
$this->add_script("aKeyboardShortcuts = $sShortcuts;");
}