Merge pull request #5233 from matrix-org/t3chguy/fix/15231
Fix Cmd/Ctrl+Shift+U for File Uploadpull/21833/head
commit
4d34e40680
|
@ -672,9 +672,10 @@ 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" }, true);
|
||||||
handled = true;
|
handled = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue