This commit is contained in:
Stewart Allen 2020-06-15 18:07:31 -04:00
commit 844cbc22a0
4 changed files with 10 additions and 24 deletions

View file

@ -1142,7 +1142,7 @@
},
load: $('load-file'),
focuser: $('focuser'),
// focuser: $('focuser'),
container: container,
rotate: $('lt-rotate'),
@ -1834,9 +1834,6 @@
// update everything dependent on the platform size
platform.update_size();
// ensure hot keys work even in iframes
API.focus();
// restore expert setting preference
API.mode.set_expert(control.expert);
@ -1882,6 +1879,14 @@
$('gdpr').style.display = 'flex';
}
// add keyboard focus handler (must use for iframes)
WIN.addEventListener('load', function () {
WIN.focus();
DOC.body.addEventListener('click', function() {
WIN.focus();
},false);
});
// dismiss gdpr alert
$('gotit').onclick = () => {
$('gdpr').style.display = 'none';