mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 03:44:10 +01:00
Try harder not to count invisible elements in <count>gi.
This commit is contained in:
@@ -1626,8 +1626,9 @@ const Buffer = Module("buffer", {
|
||||
return false;
|
||||
|
||||
let computedStyle = util.computedStyle(elem);
|
||||
let rect = elem.getBoundingClientRect();
|
||||
return computedStyle.visibility != "hidden" && computedStyle.display != "none" &&
|
||||
computedStyle.MozUserFocus != "ignore";
|
||||
computedStyle.MozUserFocus != "ignore" && rect.width && rect.height;
|
||||
});
|
||||
|
||||
dactyl.assert(elements.length > 0);
|
||||
|
||||
@@ -285,6 +285,8 @@ const Command = Class("Command", {
|
||||
*/
|
||||
replacementText: null
|
||||
}, {
|
||||
bindMacro: function (args, default_) {
|
||||
},
|
||||
|
||||
// TODO: do we really need more than longNames as a convenience anyway?
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user