mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 14:24:18 +01:00
Fix #247
This commit is contained in:
@@ -104,8 +104,7 @@ const config = { //{{{
|
||||
|
||||
focusChange: function(win) {
|
||||
// we switch to -- MESSAGE -- mode for Muttator, when the main HTML widget gets focus
|
||||
let elem = window.document.commandDispatcher.focusedElement;
|
||||
if ((win && win.document && win.document instanceof HTMLDocument) || elem instanceof HTMLAnchorElement)
|
||||
if (win && win.document instanceof HTMLDocument || liberator.focus instanceof HTMLAnchorElement)
|
||||
{
|
||||
if (config.isComposeWindow)
|
||||
modes.set(modes.INSERT, modes.TEXTAREA);
|
||||
|
||||
Reference in New Issue
Block a user