mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-31 03:07:53 +08:00
Fix Enter to enter insert mode
This commit is contained in:
parent
ae870dc09f
commit
99b5dba6dd
1 changed files with 5 additions and 1 deletions
|
@ -357,7 +357,11 @@ const Session = {
|
|||
this.showShortcuts();
|
||||
} else if (
|
||||
keyBuffer.tryMatch(["i"]) ||
|
||||
(event.target === document.body && this.focusedId && key === "Enter")
|
||||
(event.target.matches(
|
||||
`body, [data-el-cell-body], [data-el-heading], [data-focusable-id]`
|
||||
) &&
|
||||
this.focusedId &&
|
||||
key === "Enter")
|
||||
) {
|
||||
cancelEvent(event);
|
||||
if (this.isInsertModeAvailable()) {
|
||||
|
|
Loading…
Reference in a new issue