From 87ad16cf97d5ace0d8e536a4ab40a1ec8b910554 Mon Sep 17 00:00:00 2001 From: spoorcrystallogy <62602956+spoorcrystallogy@users.noreply.github.com> Date: Mon, 21 Jun 2021 19:39:38 +0200 Subject: [PATCH] Disable Control+[ and control+] https://github.com/TheodoreChu/append-editor/issues/138#issue-924197260 --- src/components/AppendEditor.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/AppendEditor.tsx b/src/components/AppendEditor.tsx index 4ac2b42..2adf8f0 100644 --- a/src/components/AppendEditor.tsx +++ b/src/components/AppendEditor.tsx @@ -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') &&