1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

Mac sends lowercase event.key even when holding Shift unlike Windows

This commit is contained in:
Michael Telatynski
2020-09-18 12:32:33 +01:00
parent ee4a5b2208
commit 780aea1a36

View File

@@ -672,6 +672,7 @@ export default class RoomView extends React.Component<IProps, IState> {
handled = true;
}
break;
case Key.U: // Mac returns lowercase
case Key.U.toUpperCase():
if (isOnlyCtrlOrCmdIgnoreShiftKeyEvent(ev) && ev.shiftKey) {
dis.dispatch({ action: "upload_file" });