Allow go back outside of the editor

This commit is contained in:
Alexandre de Souza 2024-09-19 14:14:58 -03:00
parent 91443d89a8
commit ad94f5989d
No known key found for this signature in database
GPG key ID: E39228FFBA346545

View file

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