Skip to content

Commit

Permalink
fix: settings hotkey
Browse files Browse the repository at this point in the history
  • Loading branch information
topliceanurazvan committed May 10, 2023
1 parent 8ff6881 commit 9a8cd2f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/shared/constants/hotkeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ export const hotkeys = createHotkeys({
key: 'ctrl+b, command+b',
category: 'navigation',
},
// TOGGLE_RIGHT_PANE: {
// name: 'Toggle Right Pane',
// key: 'ctrl+alt+b, command+alt+b',
// category: 'navigation',
// },
ZOOM_IN: {
name: 'Zoom in',
key: 'ctrl+=, command+=',
Expand Down
2 changes: 1 addition & 1 deletion src/shared/utils/hotkey.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const defineHotkey = (hotkey: string) => {
const shortcuts = hotkey.split(',');
const shortcuts = hotkey.includes('&') ? hotkey.split('&') : hotkey.split(',');

if (shortcuts.length < 2) {
return hotkey;
Expand Down

0 comments on commit 9a8cd2f

Please sign in to comment.