You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Make the upload_file dispatch synchronous to make Firefox happy about it
This commit is contained in:
@@ -675,7 +675,7 @@ export default class RoomView extends React.Component<IProps, IState> {
|
|||||||
case Key.U: // Mac returns lowercase
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user