mirror of
https://github.com/BlowaterNostr/blowater.git
synced 2024-10-18 15:43:20 +00:00
support cmd + enter to send messages on Mac (#299)
This commit is contained in:
parent
0132617ee2
commit
fc98ffa094
@ -204,7 +204,8 @@ export class Editor extends Component<EditorProps> {
|
||||
);
|
||||
}}
|
||||
onKeyDown={async (e) => {
|
||||
if (e.code === "Enter" && e.ctrlKey) {
|
||||
// https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/metaKey
|
||||
if (e.code === "Enter" && (e.ctrlKey || e.metaKey)) {
|
||||
await sendMessage();
|
||||
}
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user