diff --git a/src/components/editor/util/Commands.ts b/src/components/editor/util/Commands.ts index 33e873533..6909918ea 100644 --- a/src/components/editor/util/Commands.ts +++ b/src/components/editor/util/Commands.ts @@ -266,8 +266,8 @@ export const StepBackNode: Command = { description: (l) => l.ui.timeline.button.backNode, visible: Visibility.Visible, category: Category.Evaluate, - shift: false, - alt: false, + shift: true, + alt: true, control: true, key: 'ArrowLeft', keySymbol: '←', @@ -285,8 +285,8 @@ export const StepForwardNode: Command = { category: Category.Evaluate, key: 'ArrowRight', keySymbol: '→', - shift: false, - alt: false, + shift: true, + alt: true, control: true, active: (context) => context.caret?.isNode() ?? false, execute: (context) => @@ -319,25 +319,23 @@ export const StepToStart: Command = { description: (l) => l.ui.timeline.button.start, visible: Visibility.Visible, category: Category.Evaluate, - shift: true, - alt: true, + shift: false, + alt: false, control: true, - key: 'ArrowLeft', - keySymbol: '←', + key: 'Home', active: (context) => !context.evaluator.isAtBeginning(), execute: (context) => context.evaluator.stepTo(0), }; export const StepToPresent: Command = { symbol: '⇥', - description: (l) => l.ui.timeline.button.forwardInput, + description: (l) => l.ui.timeline.button.present, visible: Visibility.Visible, category: Category.Evaluate, - shift: true, - alt: true, + shift: false, + alt: false, control: true, - key: 'ArrowRight', - keySymbol: '⇢', + key: 'End', active: (context) => context.evaluator.isInPast(), execute: (context) => context.evaluator.stepToEnd(), }; diff --git a/src/components/widgets/CommandHint.svelte b/src/components/widgets/CommandHint.svelte index 47a0e4b98..9f0196799 100644 --- a/src/components/widgets/CommandHint.svelte +++ b/src/components/widgets/CommandHint.svelte @@ -7,7 +7,8 @@ const modifiers = getKeyboardModifiers(); -{#if $modifiers && ((command.control && $modifiers.control) || (command.shift && $modifiers.shift) || (command.alt && $modifiers.alt))}
+{#if $modifiers && Object.values($modifiers).some((val) => val === true) && ((command.control && $modifiers.control) || (command.shift && command.shift) || (command.alt && $modifiers.alt)) && !((command.control === false && $modifiers.control) || (command.shift && $modifiers.shift) || (command.alt && $modifiers.alt))}