From bea4f557a14e1d935b60a48c1700c8802288d8e3 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 7 Jun 2019 00:08:51 +0100 Subject: [PATCH] change profile keybind to backtick from i due to italics conflict Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/Keyboard.js | 1 + src/components/structures/LoggedInView.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Keyboard.js b/src/Keyboard.js index bf83a1a05f..fb7d692ce3 100644 --- a/src/Keyboard.js +++ b/src/Keyboard.js @@ -58,6 +58,7 @@ export const KeyCode = { KEY_X: 88, KEY_Y: 89, KEY_Z: 90, + KEY_BACKTICK: 223, }; export function isOnlyCtrlOrCmdKeyEvent(ev) { diff --git a/src/components/structures/LoggedInView.js b/src/components/structures/LoggedInView.js index 7a5c6e3006..6c05b45111 100644 --- a/src/components/structures/LoggedInView.js +++ b/src/components/structures/LoggedInView.js @@ -325,10 +325,11 @@ const LoggedInView = React.createClass({ handled = true; } break; - case KeyCode.KEY_I: + case KeyCode.KEY_BACKTICK: // Ideally this would be CTRL+P for "Profile", but that's // taken by the print dialog. CTRL+I for "Information" - // will have to do. + // was previously chosen but conflicted with italics in + // composer, so CTRL+` it is if (ctrlCmdOnly) { dis.dispatch({