diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx index 8a7e9176..1dc23168 100644 --- a/src/components/Icon.tsx +++ b/src/components/Icon.tsx @@ -37,7 +37,7 @@ const Icon: Record & Record = { duplicate: fasIcon("clone"), - help: fasIcon("question"), + help: fasIcon("keyboard"), fullScreen: fasIcon("expand"), enterFullScreen: fasIcon("expand"), exitFullScreen: fasIcon("compress"), diff --git a/src/components/Stylebar.tsx b/src/components/Stylebar.tsx index aed575b6..98861314 100644 --- a/src/components/Stylebar.tsx +++ b/src/components/Stylebar.tsx @@ -23,7 +23,7 @@ const Stylebar = (props: { const otherActions = [ Action.Copy, Action.Paste, - Action.Help, + Action.Bindings, !isFullscreen ? Action.EnterFullScreen : Action.ExitFullScreen, ]; diff --git a/src/lib/action.ts b/src/lib/action.ts index f0ee2849..ef84b6ac 100644 --- a/src/lib/action.ts +++ b/src/lib/action.ts @@ -54,7 +54,7 @@ export enum Action { HalfFilled = "halfFilled", Filled = "filled", - Help = "help", + Bindings = "help", ResetStyles = "resetStyles", FullScreen = "fullScreen", EnterFullScreen = "enterFullScreen", diff --git a/src/lib/keyboard.ts b/src/lib/keyboard.ts index 522be38f..0a9f83ea 100644 --- a/src/lib/keyboard.ts +++ b/src/lib/keyboard.ts @@ -42,10 +42,10 @@ export const defaultKeys: KeyMap = { "ctrl + x": Action.Cut, "ctrl + c": Action.Copy, - "1": Action.Help, - "0": Action.Help, - "/": Action.Help, - "shift + /": Action.Help, + "1": Action.Bindings, + "0": Action.Bindings, + "/": Action.Bindings, + "shift + /": Action.Bindings, }; export default class KeyboardHandler { @@ -75,12 +75,12 @@ export default class KeyboardHandler { // for backwards compatibility, ensure help is bound if ( - Object.values(this.keyMap).every((action) => action !== Action.Help) + Object.values(this.keyMap).every((action) => action !== Action.Bindings) ) { - this.bind("0", Action.Help); - this.bind("1", Action.Help); - this.bind("/", Action.Help); - this.bind("shift + /", Action.Help); + this.bind("0", Action.Bindings); + this.bind("1", Action.Bindings); + this.bind("/", Action.Bindings); + this.bind("shift + /", Action.Bindings); } } }