Skip to content

Commit

Permalink
fix: trim shortcut input
Browse files Browse the repository at this point in the history
  • Loading branch information
emcelroy committed Dec 3, 2024
1 parent e174f12 commit e7e0494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/keyboard-shortcut-controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const KeyboardShortcutControls = (props: IProps) => {
const handleCustomizeShortcut = (event: FormEvent) => {
event.preventDefault();
const form = event.target as HTMLInputElement;
const shortcut = form.querySelector("input")?.value;
const shortcut = form.querySelector("input")?.value.trim();
if (shortcut) {
onCustomizeShortcut?.(shortcut);
setShowError(false);
Expand Down

0 comments on commit e7e0494

Please sign in to comment.