mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-19 13:55:47 +01:00
fixed muttator focus handling
This commit is contained in:
@@ -856,7 +856,6 @@ const liberator = (function () //{{{
|
|||||||
command.execute(args, special, count, modifiers);
|
command.execute(args, special, count, modifiers);
|
||||||
},
|
},
|
||||||
|
|
||||||
// TODO: move to buffer.focus()?
|
|
||||||
// after pressing Escape, put focus on a non-input field of the browser document
|
// after pressing Escape, put focus on a non-input field of the browser document
|
||||||
// if clearFocusedElement, also blur a focused link
|
// if clearFocusedElement, also blur a focused link
|
||||||
focusContent: function (clearFocusedElement)
|
focusContent: function (clearFocusedElement)
|
||||||
@@ -870,15 +869,14 @@ const liberator = (function () //{{{
|
|||||||
// TODO: make more generic
|
// TODO: make more generic
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (liberator.has("mail") && clearFocusedElement && !config.isComposeWindow)
|
if (this.has("mail") && !config.isComposeWindow)
|
||||||
{
|
{
|
||||||
let i = gDBView.selection.currentIndex;
|
let i = gDBView.selection.currentIndex;
|
||||||
if (i == -1 && gDBView.rowCount >= 0)
|
if (i == -1 && gDBView.rowCount >= 0)
|
||||||
i = 0;
|
i = 0;
|
||||||
gDBView.selection.select(i);
|
gDBView.selection.select(i);
|
||||||
}
|
}
|
||||||
|
else if (this.has("tabs"))
|
||||||
if (this.has("tabs"))
|
|
||||||
{
|
{
|
||||||
let frame = tabs.localStore.focusedFrame;
|
let frame = tabs.localStore.focusedFrame;
|
||||||
if (frame && frame.top == window.content)
|
if (frame && frame.top == window.content)
|
||||||
|
|||||||
Reference in New Issue
Block a user