mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-09-20 10:05:57 +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 cmd = isMacOS() ? event.metaKey : event.ctrlKey;
|
||||||
|
const ctrl = event.ctrlKey;
|
||||||
const alt = event.altKey;
|
const alt = event.altKey;
|
||||||
const shift = event.shiftKey;
|
const shift = event.shiftKey;
|
||||||
const key = event.key;
|
const key = event.key;
|
||||||
|
@ -320,7 +321,11 @@ const Session = {
|
||||||
event.target.closest(`[data-el-outputs-container]`)
|
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);
|
cancelEvent(event);
|
||||||
this.queueFullCellsEvaluation(true);
|
this.queueFullCellsEvaluation(true);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue