mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 06:07:59 +01:00
Fix activating scrollable elements via ;F.
--HG-- branch : bootstrapped
This commit is contained in:
@@ -539,7 +539,12 @@ var Buffer = Module("buffer", {
|
||||
buffer.lastInputField = elem;
|
||||
}
|
||||
else {
|
||||
dactyl.focus(elem);
|
||||
if (isinstance(elem, [HTMLInputElement, XULTextBoxElement]))
|
||||
var flags = services.focus.FLAG_BYMOUSE;
|
||||
else
|
||||
flags = services.focus.FLAG_SHOWRING;
|
||||
dactyl.focus(elem, flags);
|
||||
|
||||
if (elem instanceof Window) {
|
||||
let sel = elem.getSelection();
|
||||
if (sel && !sel.rangeCount)
|
||||
|
||||
Reference in New Issue
Block a user