diff --git a/frontends/etiquette_flask/static/js/hotkeys.js b/frontends/etiquette_flask/static/js/hotkeys.js index 241944c..aa39a6a 100644 --- a/frontends/etiquette_flask/static/js/hotkeys.js +++ b/frontends/etiquette_flask/static/js/hotkeys.js @@ -43,10 +43,10 @@ function should_prevent_hotkey(event) } } -hotkeys.show_all_keybinds = -function show_all_keybinds() +hotkeys.show_all_hotkeys = +function show_all_hotkeys() { - // Display an Alert with a list of all the keybinds. + // Display an Alert with a list of all the hotkeys. var lines = []; for (var identifier in hotkeys.HOTKEYS) { @@ -57,7 +57,6 @@ function show_all_keybinds() alert(lines); } - window.addEventListener( "keydown", function(event) @@ -73,4 +72,4 @@ window.addEventListener( } ); -hotkeys.register_hotkey("/", 0, 0, 0, hotkeys.show_all_keybinds, "Show keybinds."); +hotkeys.register_hotkey("/", 0, 0, 0, hotkeys.show_all_hotkeys, "Show hotkeys.");