mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-29 14:51:17 +00:00
editor: set focus when switching between files
This commit is contained in:
parent
2d02b64464
commit
7b9f635bc0
@ -76,6 +76,12 @@ export class SourceEditor implements ProjectView {
|
|||||||
return div;
|
return div;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setVisible(showing: boolean): void {
|
||||||
|
if (showing) {
|
||||||
|
this.editor.focus(); // so that keyboard works when moving between files
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
newEditor(parent:HTMLElement, isAsmOverride?:boolean) {
|
newEditor(parent:HTMLElement, isAsmOverride?:boolean) {
|
||||||
var modedef = MODEDEFS[this.mode] || MODEDEFS.default;
|
var modedef = MODEDEFS[this.mode] || MODEDEFS.default;
|
||||||
var isAsm = isAsmOverride || modedef.isAsm;
|
var isAsm = isAsmOverride || modedef.isAsm;
|
||||||
@ -599,5 +605,5 @@ export class ListingView extends DisassemblerView implements ProjectView {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user