mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-09-20 01:55:56 +08:00
Allow go back outside of the editor
This commit is contained in:
parent
91443d89a8
commit
ad94f5989d
|
@ -308,6 +308,7 @@ const Session = {
|
|||
}
|
||||
|
||||
const cmd = isMacOS() ? event.metaKey : event.ctrlKey;
|
||||
const ctrl = event.ctrlKey;
|
||||
const alt = event.altKey;
|
||||
const shift = event.shiftKey;
|
||||
const key = event.key;
|
||||
|
@ -320,7 +321,11 @@ const Session = {
|
|||
event.target.closest(`[data-el-outputs-container]`)
|
||||
)
|
||||
) {
|
||||
if (cmd && shift && !alt && key === "Enter") {
|
||||
if (event.code === "Minus" && ctrl && alt) {
|
||||
cancelEvent(event);
|
||||
this.goBackNavigationHistory();
|
||||
return;
|
||||
} else if (cmd && shift && !alt && key === "Enter") {
|
||||
cancelEvent(event);
|
||||
this.queueFullCellsEvaluation(true);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue