mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-28 03:03:31 +01:00
Fix focus change issue.
--HG-- branch : key-processing
This commit is contained in:
@@ -1183,10 +1183,6 @@ var Events = Module("events", {
|
|||||||
// access to the real focus target
|
// access to the real focus target
|
||||||
// Huh? --djk
|
// Huh? --djk
|
||||||
onFocusChange: function onFocusChange(event) {
|
onFocusChange: function onFocusChange(event) {
|
||||||
// command line has its own focus change handler
|
|
||||||
if (modes.main.input)
|
|
||||||
return;
|
|
||||||
|
|
||||||
function hasHTMLDocument(win) win && win.document && win.document instanceof HTMLDocument
|
function hasHTMLDocument(win) win && win.document && win.document instanceof HTMLDocument
|
||||||
|
|
||||||
let win = window.document.commandDispatcher.focusedWindow;
|
let win = window.document.commandDispatcher.focusedWindow;
|
||||||
@@ -1222,7 +1218,7 @@ var Events = Module("events", {
|
|||||||
if (modes.main == modes.VISUAL && elem.selectionEnd == elem.selectionStart)
|
if (modes.main == modes.VISUAL && elem.selectionEnd == elem.selectionStart)
|
||||||
modes.pop();
|
modes.pop();
|
||||||
|
|
||||||
if (!(modes.main & (modes.INSERT | modes.TEXT_EDIT | modes.VISUAL)))
|
if (!modes.main.input)
|
||||||
if (options["insertmode"])
|
if (options["insertmode"])
|
||||||
modes.push(modes.INSERT);
|
modes.push(modes.INSERT);
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user