mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(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:
parent
a8827b152e
commit
bf63e2bd70
@ -625,7 +625,7 @@ class CommentEntry extends Disposable {
|
|||||||
dom.onKeyDown({
|
dom.onKeyDown({
|
||||||
Enter$: async (e) => {
|
Enter$: async (e) => {
|
||||||
// Save on ctrl+enter
|
// Save on ctrl+enter
|
||||||
if (e.ctrlKey && text.get().trim()) {
|
if ((e.ctrlKey || e.metaKey) && text.get().trim()) {
|
||||||
await onSave?.();
|
await onSave?.();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
Loading…
Reference in New Issue
Block a user