mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
change profile keybind to backtick from i due to italics conflict
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
97019fbfb5
commit
bea4f557a1
2 changed files with 4 additions and 2 deletions
|
@ -58,6 +58,7 @@ export const KeyCode = {
|
||||||
KEY_X: 88,
|
KEY_X: 88,
|
||||||
KEY_Y: 89,
|
KEY_Y: 89,
|
||||||
KEY_Z: 90,
|
KEY_Z: 90,
|
||||||
|
KEY_BACKTICK: 223,
|
||||||
};
|
};
|
||||||
|
|
||||||
export function isOnlyCtrlOrCmdKeyEvent(ev) {
|
export function isOnlyCtrlOrCmdKeyEvent(ev) {
|
||||||
|
|
|
@ -325,10 +325,11 @@ const LoggedInView = React.createClass({
|
||||||
handled = true;
|
handled = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case KeyCode.KEY_I:
|
case KeyCode.KEY_BACKTICK:
|
||||||
// Ideally this would be CTRL+P for "Profile", but that's
|
// Ideally this would be CTRL+P for "Profile", but that's
|
||||||
// taken by the print dialog. CTRL+I for "Information"
|
// 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) {
|
if (ctrlCmdOnly) {
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
|
|
Loading…
Reference in a new issue