mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-02 22:05:47 +01:00
Closes issue #634.
This commit is contained in:
@@ -1412,7 +1412,7 @@ var Events = Module("events", {
|
|||||||
// argument "event" is deliberately not used, as i don't seem to have
|
// argument "event" is deliberately not used, as i don't seem to have
|
||||||
// access to the real focus target
|
// access to the real focus target
|
||||||
// Huh? --djk
|
// Huh? --djk
|
||||||
onFocusChange: function onFocusChange(event) {
|
onFocusChange: util.wrapCallback(function onFocusChange(event) {
|
||||||
function hasHTMLDocument(win) win && win.document && win.document instanceof HTMLDocument
|
function hasHTMLDocument(win) win && win.document && win.document instanceof HTMLDocument
|
||||||
if (dactyl.ignoreFocus)
|
if (dactyl.ignoreFocus)
|
||||||
return;
|
return;
|
||||||
@@ -1458,7 +1458,7 @@ var Events = Module("events", {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Events.isInputElement(elem)) {
|
if (elem && Events.isInputElement(elem)) {
|
||||||
if (!haveInput)
|
if (!haveInput)
|
||||||
modes.push(modes.INSERT);
|
modes.push(modes.INSERT);
|
||||||
|
|
||||||
@@ -1486,7 +1486,7 @@ var Events = Module("events", {
|
|||||||
if (modes.main.ownsFocus)
|
if (modes.main.ownsFocus)
|
||||||
modes.topOfStack.params.ownsFocus = elem;
|
modes.topOfStack.params.ownsFocus = elem;
|
||||||
}
|
}
|
||||||
},
|
}),
|
||||||
|
|
||||||
onSelectionChange: function onSelectionChange(event) {
|
onSelectionChange: function onSelectionChange(event) {
|
||||||
let controller = document.commandDispatcher.getControllerForCommand("cmd_copy");
|
let controller = document.commandDispatcher.getControllerForCommand("cmd_copy");
|
||||||
|
|||||||
Reference in New Issue
Block a user