mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 07:27:58 +01:00
Kludge to enable focusing the input field on Mac/MS
This commit is contained in:
@@ -137,7 +137,12 @@ const modes = (function () //{{{
|
||||
options.setPref("accessibility.browsewithcaret", false);
|
||||
|
||||
statusline.updateUrl();
|
||||
liberator.focusContent(false);
|
||||
// Kludge to prevent the input field losing focus on MS/Mac
|
||||
setTimeout(function () {
|
||||
let focus = document.commandDispatcher.focusedElement;
|
||||
if (focus != document.getElementById("urlbar").inputField)
|
||||
liberator.focusContent(false);
|
||||
}, 100);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user