mirror of https://github.com/vector-im/riot-web
Mac sends lowercase event.key even when holding Shift unlike Windows
parent
ee4a5b2208
commit
780aea1a36
|
@ -672,6 +672,7 @@ export default class RoomView extends React.Component<IProps, IState> {
|
||||||
handled = true;
|
handled = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case Key.U: // Mac returns lowercase
|
||||||
case Key.U.toUpperCase():
|
case Key.U.toUpperCase():
|
||||||
if (isOnlyCtrlOrCmdIgnoreShiftKeyEvent(ev) && ev.shiftKey) {
|
if (isOnlyCtrlOrCmdIgnoreShiftKeyEvent(ev) && ev.shiftKey) {
|
||||||
dis.dispatch({ action: "upload_file" });
|
dis.dispatch({ action: "upload_file" });
|
||||||
|
|
Loading…
Reference in New Issue