(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
This commit is contained in:
Cyprien P 2023-01-03 17:51:16 +01:00
parent a8827b152e
commit bf63e2bd70

View File

@ -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();