Skip to content

Commit

Permalink
Disable Control+[ and control+]
Browse files Browse the repository at this point in the history
  • Loading branch information
spoorcrystallogy authored Jun 21, 2021
1 parent 51e3107 commit 87ad16c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/components/AppendEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1694,12 +1694,13 @@ export default class AppendEditor extends React.Component<{}, AppendInterface> {
this.onAppendMode();
}
);
} else if (keyMap.get('Control') && keyMap.get('[')) {
e.preventDefault();
this.skipToTop();
} else if (keyMap.get('Control') && keyMap.get(']')) {
e.preventDefault();
this.skipToBottom();
// Control+[ and Control+] are broken on Swedish keyboard
// } else if (keyMap.get('Control') && keyMap.get('[')) {
// e.preventDefault();
// this.skipToTop();
// } else if (keyMap.get('Control') && keyMap.get(']')) {
// e.preventDefault();
// this.skipToBottom();
} else if (
keyMap.get('Control') &&
!keyMap.get('Alt') &&
Expand Down

0 comments on commit 87ad16c

Please sign in to comment.