mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2025-08-10 00:25:15 +00:00
zmachine: fixed focus on chrome
This commit is contained in:
@@ -785,9 +785,11 @@ class ZmachinePlatform implements Platform {
|
|||||||
});
|
});
|
||||||
inputline.on('focus', (e) => {
|
inputline.on('focus', (e) => {
|
||||||
this.glk.focused = true;
|
this.glk.focused = true;
|
||||||
|
console.log('inputline gained focus');
|
||||||
});
|
});
|
||||||
inputline.on('blur', (e) => {
|
$("#workspace").on('click', (e) => {
|
||||||
this.glk.focused = false;
|
this.glk.focused = false;
|
||||||
|
console.log('inputline lost focus');
|
||||||
});
|
});
|
||||||
windowport.on('click', (e) => {
|
windowport.on('click', (e) => {
|
||||||
inputline.focus();
|
inputline.focus();
|
||||||
|
Reference in New Issue
Block a user