mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:17:59 +01:00
Fix some smallish focus issued.
This commit is contained in:
@@ -258,7 +258,7 @@ var Buffer = Module("buffer", {
|
||||
else if (flags & Ci.nsIWebProgressListener.STATE_STOP) {
|
||||
// Workaround for bugs 591425 and 606877, dactyl bug #81
|
||||
config.browser.mCurrentBrowser.collapsed = false;
|
||||
if (!dactyl.focusedElement)
|
||||
if (!dactyl.focusedElement || dactyl.focusedElement === document.documentElement)
|
||||
dactyl.focusContent();
|
||||
statusline.updateUrl();
|
||||
}
|
||||
|
||||
@@ -719,6 +719,7 @@ var Events = Module("events", {
|
||||
let rect = dactyl.focusedElement.getBoundingClientRect();
|
||||
if (!rect.width || !rect.height) {
|
||||
services.focus.clearFocus(window);
|
||||
document.commandDispatcher.focusedWindow = content;
|
||||
// onFocusChange needs to die.
|
||||
this.onFocusChange();
|
||||
}
|
||||
@@ -726,12 +727,14 @@ var Events = Module("events", {
|
||||
},
|
||||
|
||||
onBlur: function onFocus(event) {
|
||||
if (event.originalTarget instanceof Window && services.focus.activeWindow == null)
|
||||
if (event.originalTarget instanceof Window && services.focus.activeWindow == null) {
|
||||
// Deals with circumstances where, after the main window
|
||||
// blurs while a collapsed frame has focus, re-activating
|
||||
// the main window does not restore focus and we lose key
|
||||
// input.
|
||||
services.focus.clearFocus(window);
|
||||
document.commandDispatcher.focusedWindow = content;
|
||||
}
|
||||
},
|
||||
|
||||
// TODO: Merge with onFocusChange
|
||||
|
||||
@@ -976,9 +976,9 @@ var Tabs = Module("tabs", {
|
||||
return value;
|
||||
},
|
||||
completer: function (context) [
|
||||
["never", "Never show tab bar"],
|
||||
["multitab", "Show tab bar when there are multiple tabs"],
|
||||
["always", "Always show tab bar"]
|
||||
["never", "Never show the tab bar"],
|
||||
["multitab", "Show the tab bar when there are multiple tabs"],
|
||||
["always", "Always show the tab bar"]
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
<!DOCTYPE document SYSTEM "chrome://dactyl/content/help.dtd" [
|
||||
<!ENTITY hinttags "//*[@onclick or @onmouseover or @onmousedown or
|
||||
@onmouseup or @oncommand or @role='link'] |
|
||||
//input[not(@type='hidden')] | //a | //area |
|
||||
//iframe | //textarea | //button | //select |
|
||||
//xhtml:input[not(@type='hidden')] | //xhtml:a |
|
||||
//xhtml:area | //xhtml:iframe | //xhtml:textarea |
|
||||
//xhtml:button | //xhtml:select">
|
||||
//input[not(@type='hidden')] | //xhtml:input[not(@type='hidden')] |
|
||||
//a | //xhtml:a | //area | //xhtml:area |
|
||||
//button | //xhtml:button | //iframe | //xhtml:iframe |
|
||||
//select | //xhtml:select | //textarea | //xhtml:textarea">
|
||||
]>
|
||||
|
||||
<document
|
||||
@@ -640,10 +639,8 @@
|
||||
//area[@href] | //xhtml:area[@href] |
|
||||
//img[@src] | //xhtml:img[@src] |
|
||||
//iframe[@src] | //xhtml:iframe[@src]',
|
||||
[F]:'//div | //xhtml:div |
|
||||
//span | //xhtml:span |
|
||||
//p | //xhtml:p |
|
||||
//body | //xhtml:body |
|
||||
[F]:'//div | //xhtml:div | //span | //xhtml:span |
|
||||
//p | //xhtml:p | //body | //xhtml:body |
|
||||
//html | //xhtml:html'
|
||||
[S]:'//input[not(@type=''hidden'')] |
|
||||
//xhtml:input[not(@type=''hidden'')] |
|
||||
@@ -1356,9 +1353,9 @@
|
||||
<p>Define when the tab bar is visible.</p>
|
||||
|
||||
<dl>
|
||||
<dt>always</dt> <dd>Always show tab bar</dd>
|
||||
<dt>multitab</dt> <dd>Show tab bar when there are multiple tabs</dd>
|
||||
<dt>never</dt> <dd>Never show tab bar</dd>
|
||||
<dt>always</dt> <dd>Always show the tab bar</dd>
|
||||
<dt>multitab</dt> <dd>Show the tab bar when there are multiple tabs</dd>
|
||||
<dt>never</dt> <dd>Never show the tab bar</dd>
|
||||
</dl>
|
||||
</description>
|
||||
</item>
|
||||
|
||||
Reference in New Issue
Block a user