From bf63e2bd706f527aa048a28fd470ac33a7c8646c Mon Sep 17 00:00:00 2001 From: Cyprien P Date: Tue, 3 Jan 2023 17:51:16 +0100 Subject: [PATCH] (core) Fix comments nbrowser tests on mac Summary: Comments do save on ctrl+enter but test implementation was resolving to command+enter. Test Plan: Should not break anything. Reviewers: jarek Reviewed By: jarek Subscribers: paulfitz, jarek Differential Revision: https://phab.getgrist.com/D3752 --- app/client/widgets/DiscussionEditor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/widgets/DiscussionEditor.ts b/app/client/widgets/DiscussionEditor.ts index 23ce7805..1cde61e2 100644 --- a/app/client/widgets/DiscussionEditor.ts +++ b/app/client/widgets/DiscussionEditor.ts @@ -625,7 +625,7 @@ class CommentEntry extends Disposable { dom.onKeyDown({ Enter$: async (e) => { // Save on ctrl+enter - if (e.ctrlKey && text.get().trim()) { + if ((e.ctrlKey || e.metaKey) && text.get().trim()) { await onSave?.(); e.preventDefault(); e.stopPropagation();