mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
unbreak modifier+space (e.g. emoji insert on macOS)
(cherry picked from commit c490f87) Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
021409aafe
commit
0d0934add7
@ -713,6 +713,10 @@ export default class MessageComposerInput extends React.Component {
|
||||
};
|
||||
|
||||
onSpace = (ev: KeyboardEvent, change: Change): Change => {
|
||||
if (ev.metaKey || ev.altKey || ev.shiftKey || ev.ctrlKey) {
|
||||
return;
|
||||
}
|
||||
|
||||
// drop a point in history so the user can undo a word
|
||||
// XXX: this seems nasty but adding to history manually seems a no-go
|
||||
ev.preventDefault();
|
||||
|
Loading…
Reference in New Issue
Block a user