mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-13 09:35:45 +01:00
Deal with native keyboard scrolling issues after focusContent, with the side-effect of again focusing the top-level window when the content window is focused.
This commit is contained in:
@@ -6,10 +6,10 @@
|
|||||||
xmlns:xbl="http://www.mozilla.org/xbl"
|
xmlns:xbl="http://www.mozilla.org/xbl"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
|
|
||||||
<binding id="frame">
|
<binding id="frame" inheritstyle="false">
|
||||||
<content>
|
<content>
|
||||||
<html:div dactyl:highlight="FrameIndicator"/>
|
|
||||||
<children/>
|
<children/>
|
||||||
|
<html:div dactyl:highlight="FrameIndicator"/>
|
||||||
</content>
|
</content>
|
||||||
</binding>
|
</binding>
|
||||||
|
|
||||||
|
|||||||
@@ -198,25 +198,34 @@ const ConfigBase = Class(ModuleBase, {
|
|||||||
CmdInput;.dactyl-commandline-command
|
CmdInput;.dactyl-commandline-command
|
||||||
CmdOutput white-space: pre;
|
CmdOutput white-space: pre;
|
||||||
|
|
||||||
|
|
||||||
CompGroup
|
CompGroup
|
||||||
CompGroup:not(:first-of-type) margin-top: .5em;
|
CompGroup:not(:first-of-type) margin-top: .5em;
|
||||||
|
CompGroup:last-of-type padding-bottom: 1.5ex;
|
||||||
|
|
||||||
CompTitle color: magenta; background: white; font-weight: bold;
|
CompTitle color: magenta; background: white; font-weight: bold;
|
||||||
CompTitle>* padding: 0 .5ex;
|
CompTitle>* padding: 0 .5ex;
|
||||||
CompTitleSep height: 1px; background: magenta; background: -moz-linear-gradient(60deg, magenta, white);
|
CompTitleSep height: 1px; background: magenta; background: -moz-linear-gradient(60deg, magenta, white);
|
||||||
|
|
||||||
CompMsg font-style: italic; margin-left: 16px;
|
CompMsg font-style: italic; margin-left: 16px;
|
||||||
|
|
||||||
CompItem
|
CompItem
|
||||||
CompItem:nth-child(2n+1) background: rgba(0, 0, 0, .04);
|
CompItem:nth-child(2n+1) background: rgba(0, 0, 0, .04);
|
||||||
CompItem[selected] background: yellow;
|
CompItem[selected] background: yellow;
|
||||||
CompItem>* padding: 0 .5ex;
|
CompItem>* padding: 0 .5ex;
|
||||||
|
|
||||||
CompIcon width: 16px; min-width: 16px; display: inline-block; margin-right: .5ex;
|
CompIcon width: 16px; min-width: 16px; display: inline-block; margin-right: .5ex;
|
||||||
CompIcon>img max-width: 16px; max-height: 16px; vertical-align: middle;
|
CompIcon>img max-width: 16px; max-height: 16px; vertical-align: middle;
|
||||||
|
|
||||||
CompResult width: 36%; padding-right: 1%; overflow: hidden;
|
CompResult width: 36%; padding-right: 1%; overflow: hidden;
|
||||||
CompDesc color: gray; width: 62%; padding-left: 1em;
|
CompDesc color: gray; width: 62%; padding-left: 1em;
|
||||||
|
|
||||||
CompLess text-align: center; height: 0; line-height: .5ex; padding-top: 1ex;
|
CompLess text-align: center; height: 0; line-height: .5ex; padding-top: 1ex;
|
||||||
CompLess::after content: "⌃";
|
CompLess::after content: "⌃";
|
||||||
|
|
||||||
CompMore text-align: center; height: .5ex; line-height: .5ex; margin-bottom: -.5ex;
|
CompMore text-align: center; height: .5ex; line-height: .5ex; margin-bottom: -.5ex;
|
||||||
CompMore::after content: "⌄";
|
CompMore::after content: "⌄";
|
||||||
CompGroup:last-of-type padding-bottom: 1.5ex;
|
|
||||||
|
|
||||||
EditorEditing;;* background: #bbb !important; -moz-user-input: none; -moz-user-modify: read-only;
|
EditorEditing;;* background: #bbb !important; -moz-user-input: none; -moz-user-modify: read-only;
|
||||||
EditorError;;* background: red !important;
|
EditorError;;* background: red !important;
|
||||||
@@ -258,27 +267,25 @@ const ConfigBase = Class(ModuleBase, {
|
|||||||
URLExtra color: gray;
|
URLExtra color: gray;
|
||||||
|
|
||||||
FrameIndicator;;* {
|
FrameIndicator;;* {
|
||||||
/* This gets released into the wild, so everything is important */
|
background-color: red;
|
||||||
background-color: red !important;
|
opacity: 0.5;
|
||||||
opacity: 0.5 !important;
|
z-index: 999999;
|
||||||
z-index: 999999 !important;
|
position: fixed;
|
||||||
position: fixed !important;
|
top: 0;
|
||||||
top: 0 !important;
|
bottom: 0;
|
||||||
bottom: 0 !important;
|
left: 0;
|
||||||
left: 0 !important;
|
right: 0;
|
||||||
right: 0 !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
!Bell background-color: black !important;
|
Bell background-color: black !important;
|
||||||
|
|
||||||
Hint;;* {
|
Hint;;* {
|
||||||
/* This gets released into the wild, so everything is important */
|
|
||||||
font-size: 10px !important;
|
font-size: 10px !important;
|
||||||
font-family: monospace !important;
|
font-family: monospace !important;
|
||||||
font-weight: bold !important;
|
font-weight: bold !important;
|
||||||
background-color: red !important;
|
background-color: red;
|
||||||
color: white !important;
|
color: white;
|
||||||
border: 0px solid ButtonShadow !important;
|
padding: 0px 1px;
|
||||||
padding: 0px 1px !important;
|
|
||||||
}
|
}
|
||||||
Hint::after;;* content: attr(text) !important;
|
Hint::after;;* content: attr(text) !important;
|
||||||
HintElem;;* background-color: yellow !important; color: black !important;
|
HintElem;;* background-color: yellow !important; color: black !important;
|
||||||
@@ -328,14 +335,20 @@ const ConfigBase = Class(ModuleBase, {
|
|||||||
padding-right: 13px;
|
padding-right: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HelpTOC
|
||||||
|
HelpTOC>ol ol margin-left: -1em;
|
||||||
|
|
||||||
HelpOrderedList;ol;dactyl://help/*
|
HelpOrderedList;ol;dactyl://help/*
|
||||||
HelpOrderedList1;ol[level="1"],ol;dactyl://help/* list-style: outside decimal; display: block;
|
HelpOrderedList1;ol[level="1"],ol;dactyl://help/* list-style: outside decimal; display: block;
|
||||||
HelpOrderedList2;ol[level="2"],ol ol;dactyl://help/* list-style: outside upper-alpha;
|
HelpOrderedList2;ol[level="2"],ol ol;dactyl://help/* list-style: outside upper-alpha;
|
||||||
HelpOrderedList3;ol[level="3"],ol ol ol;dactyl://help/* list-style: outside lower-roman;
|
HelpOrderedList3;ol[level="3"],ol ol ol;dactyl://help/* list-style: outside lower-roman;
|
||||||
HelpOrderedList4;ol[level="4"],ol ol ol ol;dactyl://help/* list-style: outside decimal;
|
HelpOrderedList4;ol[level="4"],ol ol ol ol;dactyl://help/* list-style: outside decimal;
|
||||||
|
|
||||||
HelpList;html|ul;dactyl://help/* display: block; list-style: outside disc;
|
HelpList;html|ul;dactyl://help/* display: block; list-style: outside disc;
|
||||||
HelpListItem;html|li;dactyl://help/* display: list-item;
|
HelpListItem;html|li;dactyl://help/* display: list-item;
|
||||||
|
|
||||||
|
|
||||||
HelpNote color: red; font-weight: bold;
|
HelpNote color: red; font-weight: bold;
|
||||||
|
|
||||||
HelpOpt color: #106326;
|
HelpOpt color: #106326;
|
||||||
@@ -352,6 +365,7 @@ const ConfigBase = Class(ModuleBase, {
|
|||||||
HelpString[delim]::before content: attr(delim);
|
HelpString[delim]::before content: attr(delim);
|
||||||
HelpString[delim]::after content: attr(delim);
|
HelpString[delim]::after content: attr(delim);
|
||||||
|
|
||||||
|
|
||||||
HelpHead;html|h1,html|h2,html|h3,html|h4;dactyl://help/* {
|
HelpHead;html|h1,html|h2,html|h3,html|h4;dactyl://help/* {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #527BBD;
|
color: #527BBD;
|
||||||
@@ -377,8 +391,6 @@ const ConfigBase = Class(ModuleBase, {
|
|||||||
HelpHead4;html|h4;dactyl://help/* {
|
HelpHead4;html|h4;dactyl://help/* {
|
||||||
}
|
}
|
||||||
|
|
||||||
HelpTOC
|
|
||||||
HelpTOC>ol ol margin-left: -1em;
|
|
||||||
|
|
||||||
HelpTab;html|dl;dactyl://help/* {
|
HelpTab;html|dl;dactyl://help/* {
|
||||||
display: table;
|
display: table;
|
||||||
|
|||||||
@@ -369,7 +369,7 @@ const Dactyl = Module("dactyl", {
|
|||||||
if (elem instanceof Document)
|
if (elem instanceof Document)
|
||||||
elem = elem.defaultView;
|
elem = elem.defaultView;
|
||||||
if (elem instanceof Window)
|
if (elem instanceof Window)
|
||||||
services.focus.clearFocus(elem);
|
services.focus.focusedWindow = elem;
|
||||||
else
|
else
|
||||||
services.focus.setFocus(elem, flags);
|
services.focus.setFocus(elem, flags);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@@ -178,7 +178,7 @@
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
Plugins should provide inline documentation, which will appear on the
|
Plugins should provide inline documentation, which will appear on the
|
||||||
<ex>:help plugins</ex> page. The markup for help entries is the same
|
<ex>:help <str delim="">plugins</str></ex> page. The markup for help entries is the same
|
||||||
as the above, along with a few extra plugin-specific entries. Here is an
|
as the above, along with a few extra plugin-specific entries. Here is an
|
||||||
example from the popular <em>flashblock</em> extension:
|
example from the popular <em>flashblock</em> extension:
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user