Code: Select all
MsgToggleThreaded();
Code: Select all
var viewFlags = GetDBView().viewFlags
if(viewFlags & nsMsgViewFlagsType.kThreadedDisplay
&& !(viewFlags & nsMsgViewFlagsType.kGroupBySort))
MsgSortUnthreaded();
else
MsgSortThreaded();
Code: Select all
MsgToggleThreaded();
Code: Select all
var viewFlags = GetDBView().viewFlags
if(viewFlags & nsMsgViewFlagsType.kThreadedDisplay
&& !(viewFlags & nsMsgViewFlagsType.kGroupBySort))
MsgSortUnthreaded();
else
MsgSortThreaded();
Code: Select all
LoadMsgWithRemoteContent();
dorando wrote:No cmd_ but DOM Inspector suggests:Code: Select all
LoadMsgWithRemoteContent();
Code: Select all
gBrowser.reloadAllTabs(gBrowser.mContextTab);
Code: Select all
var browsers = gBrowser.browsers;
var i = 0;
var l = browsers.length;
var x = gBrowser.mCurrentTab._tPos;
for(; i < l; i++)
if(i != x) try { browsers[i].reload(); } catch(err){};
Code: Select all
var browsers = gBrowser.browsers;
var i = gBrowser.mCurrentTab._tPos + 1;
var l = browsers.length;
for(; i < l; i++)
try { browsers[i].reload(); } catch(err){};
Code: Select all
var browsers = gBrowser.browsers;
var i = gBrowser.mCurrentTab._tPos - 1;
var l = -1;
for(; i > l; i--)
try { browsers[i].reload(); } catch(err){};
Code: Select all
var x = gBrowser.mCurrentTab._tPos + 1;
gBrowser.moveTabTo(gBrowser.selectedTab = gBrowser.addTab("about:blank"), x);
Those won't reach a <key>, so keyconfig can't help here. You should be able to achieve this by creating a binding file (myHTMLBindings.xml) with following content:Hugin wrote:1) When a text box on a web form currently has focus, is there a way to get KeyConfig to still recognize key presses of the directional arrow keys? I'd like to be able to use up, down, left, and right shortcuts while these form elements have focus if possible.
Code: Select all
<?xml version="1.0"?>
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="inputFields" extends="chrome://global/content/platformHTMLBindings.xml#inputFields">
<handlers>
<handler event="keypress" keycode="VK_LEFT"><![CDATA[
]]></handler>
<handler event="keypress" keycode="VK_RIGHT"><![CDATA[
]]></handler>
<handler event="keypress" keycode="VK_UP"><![CDATA[
]]></handler>
<handler event="keypress" keycode="VK_DOWN"><![CDATA[
]]></handler>
</handlers>
</binding>
</bindings>
Code: Select all
input[type="text"], input:not([type]) {
-moz-binding: url("resource:///res/myHTMLBindings.xml#inputFields") !important;
}
content.wrappedJSObject.ClearAll();Hugin wrote:2) Is there an easy way to allow KeyConfig shortcuts to do things like call functions in a webpage? For example, if I had a calculator program prebuilt with JavaScript on a website somewhere and I wanted to bind F12 to call the ClearAll function via KeyConfig, is this even possible? Obviously F12 would do nothing if there was no ClearAll function on a given webpage, but as long as it worked when there was a ClearAll function, that's all I'm after.
goDoCommand("cmd_rewrap");sinoslav wrote:What's the code for Edit | Rewrap?
chrispix wrote:I'm running keyconfig 20060828 in Firefox 2.0 on OS X 10.4.8, and have come across a strange bug. If I type certain characters twice in quick succession while in a text input field or textarea, I lose focus. It happens at least with the following characters:
- (hyphen)
_ (underscore)
! (exclamation)
If I disable keyconfig, the problem goes away. I don't have any key mappings for those keys. Has anyone else seen this problem? It's easily reproducible for me, including in the input boxes on this site. The only place it doesn't seem to happen is in the body field in gmail (although it does happen in the to and subject fields).
dorando wrote:Try to disable other extensions, if you haven't already, as there is always the chance that a conflict happens somewhere. You could also try to set keyconfig.profile (in about:config) to something else to test if a shortcut has been misapplied.