1
0
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:
Kris Maglione
2010-12-28 17:20:28 -05:00
parent cc9ef60b63
commit e804d51448
2 changed files with 15 additions and 20 deletions

View File

@@ -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)