Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3077 from matrix-org/t3chguy/change_keybind
Browse files Browse the repository at this point in the history
change profile keybind to backtick from i due to italics conflict
  • Loading branch information
t3chguy authored Jun 6, 2019
2 parents a591a93 + bea4f55 commit 3f6b266
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const KeyCode = {
KEY_X: 88,
KEY_Y: 89,
KEY_Z: 90,
KEY_BACKTICK: 223,
};

export function isOnlyCtrlOrCmdKeyEvent(ev) {
Expand Down
5 changes: 3 additions & 2 deletions src/components/structures/LoggedInView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 3f6b266

Please sign in to comment.