keyconfig 20110522

Announce and Discuss the Latest Theme and Extension Releases.
Post Reply
nkurz
Posts: 62
Joined: November 12th, 2002, 10:09 pm

Post by nkurz »

YellowJacketRyan wrote:Is there an easy way to get a list of all the command sassociated with the menu options?
Ryan


I'm just getting started with keyconfig, but I've found a few of the scrolling commands I've been looking for in the file res/builtin/platformHTMLBindings.xml:

<handler event="keypress" keycode="VK_PAGE_UP"
command="cmd_movePageUp"/>
<handler event="keypress" keycode="VK_PAGE_DOWN"
command="cmd_movePageDown"/>
<handler event="keypress" keycode="VK_HOME"
command="cmd_scrollTop"/>
<handler event="keypress" keycode="VK_END"
command="cmd_scrollBottom"/>

Which seems to work when thrown into prefs.js in the format:

user_pref("keyconfig.main.xxx_key__Page Down",
"!][][][goDoCommand('cmd_scrollPageDown');");
user_pref("keyconfig.main.xxx_key__Page Up",
"!][][][goDoCommand('cmd_scrollPageUp');");
user_pref("keyconfig.main.xxx_key__Scroll Bottom",
"!][][][goDoCommand('cmd_scrollBottom');");
user_pref("keyconfig.main.xxx_key__Scroll Top",
"!][][][goDoCommand('cmd_scrollTop);");

And then configured using keyconfig (although Cntl-Up Arrow doesn't seem to working for scroll top for some reason).

Hope this might help someone,

--nate
User avatar
Christian-79
Posts: 134
Joined: November 22nd, 2004, 1:48 pm
Location: Germany

Custom keys for SessionSaver

Post by Christian-79 »

This might help some SessionSaver users, that love keyboard shortcuts like me. I use Ctrl+Shift+S for Save and Ctrl+Shift+T for Load.

user_pref("keyconfig.main.xxx_key__SessionSaver - Save Session", "!][][][SessionSaver.hiddenObserver.observe(null, 'SessionSaver-CaptureAll', null);");
user_pref("keyconfig.main.xxx_key__SessionSaver - Load Session", "!][][][SessionSaver.sessionRecall(null, SessionSaver.prefBranchStatic + SessionSaver.staticBranchDefault)");

More SessionSaver shortcuts:
http://forums.mozillazine.org/viewtopic ... 85#1095867
User avatar
Christian-79
Posts: 134
Joined: November 22nd, 2004, 1:48 pm
Location: Germany

Post by Christian-79 »

Hello Dorando!

Thanks for your keybinding prefs.

dorando wrote:
Christian-79 wrote:And maybe a keybinding for proportional font and monospaced font in TB:
("Tools > Options > Composition ...")
Hmm, not sure what you refer to. The only thing I see are "HTML Options", but this can be edited from the compose window.

Oops, I was completely wrong. It is: "Tools > Options > Display > Fixed Width font" and "Variable width font".

How can I bind "View > Headers > [x] Brief" and "View > Headers > [_] Brief" * (with and without checkmark)? Could I also bind other views like Normal ... and so on?

(* "Brief" view is a part of the extension Mnenhy: http://mnenhy.mozdev.org )

Regards

Christian
Last edited by Christian-79 on January 5th, 2005, 8:36 am, edited 2 times in total.
rsvetan
Posts: 2
Joined: December 26th, 2004, 3:01 am

Post by rsvetan »

nkurz wrote:
Which seems to work when thrown into prefs.js in the format:

user_pref("keyconfig.main.xxx_key__Page Down",
"!][][][goDoCommand('cmd_scrollPageDown');");
user_pref("keyconfig.main.xxx_key__Page Up",
"!][][][goDoCommand('cmd_scrollPageUp');");
user_pref("keyconfig.main.xxx_key__Scroll Bottom",
"!][][][goDoCommand('cmd_scrollBottom');");
user_pref("keyconfig.main.xxx_key__Scroll Top",
"!][][][goDoCommand('cmd_scrollTop);");

And then configured using keyconfig (although Cntl-Up Arrow doesn't seem to working for scroll top for some reason).
--nate


Thanks, Nate. I'm running Firefox 1.0 on OS X. Using your tip, I was able to set 'cmd_scrollTOP' to use the standard Apple cmd+up arrow.

However, while it works in the current browsing session, Keyconfig doesn't remember my changes. So no happiness yet. :-(
rsvetan
Posts: 2
Joined: December 26th, 2004, 3:01 am

Post by rsvetan »

Got it working. Just removed all references from user.js. Key config settings work and remain between sessions despite their being grayed out. Nice. :-)
User avatar
onemen
Posts: 1136
Joined: October 15th, 2004, 7:48 am

NEW !!! KeyConfig With Sort.......

Post by onemen »

i made new version for keyconfig.
the user can sort the Keys by name or
shortcut, and it highlighted duplicate shortcut.
i sent it to sboulema to put it in The Extensions Mirror
User avatar
Christian-79
Posts: 134
Joined: November 22nd, 2004, 1:48 pm
Location: Germany

Re: NEW !!! KeyConfig With Sort.......

Post by Christian-79 »

onemen wrote:i made new version for keyconfig. [...] i sent it to sboulema to put it in The Extensions Mirror

Great! I hope you also sended it to Dorando, so that he uses it for future versions. A lot of enhanced versions aren't included into further development by the author of the original programm and are therefore often outdated.

Here is it:
http://www.extensionsmirror.nl/index.php?showtopic=254
dorando
Posts: 1203
Joined: January 9th, 2004, 9:57 am
Contact:

Post by dorando »

Many thanks for this, I wasn't aware that a non RDF based tree could have sorting capabilities.
Support mozilla.dorando.at through donations/contributions.
User avatar
onemen
Posts: 1136
Joined: October 15th, 2004, 7:48 am

Post by onemen »

i didn't knew it my self until i did it :)
and now it seems so logic. i just used two sorted array as index one for the name and one for the keys. for revers the order i'v gave the tree the index from the end of the array so index = total row in the tree - 1 - index.
User avatar
Christian-79
Posts: 134
Joined: November 22nd, 2004, 1:48 pm
Location: Germany

Start Keyword Bookmarks per Keyboard Shortcuts

Post by Christian-79 »

Is it possible to start keyword bookmarks per key binding by adding some code to the prefs.js? You could start bookmarklets or websites in this way. If not, this is a feature request. ;)

Regards

Christian
dorando
Posts: 1203
Joined: January 9th, 2004, 9:57 am
Contact:

Post by dorando »

user_pref("keyconfig.main.xxx_key__Keyword 1", "!][][][if(window.loadURI) loadURI(getShortcutOrURI('keyword',{}));");
User avatar
onemen
Posts: 1136
Joined: October 15th, 2004, 7:48 am

Post by onemen »

thanks dorando ....great tip :)
dfbreyes
Posts: 2
Joined: January 9th, 2005, 5:36 pm

Post by dfbreyes »

Hello to the Mozilla users community.

I would like to ask about Mozilla keyboard shortcuts.

Those combinations of ALT, CTRL,or Shift.

How does one disable them altogether?

Say, a cashier uses mozilla, and you don't want him/her to see pop-ups or accidentally press a combination of ALT / CTRL keys.

How do you disable these hotkeys? (keyboard combinations)

Thank you
User avatar
Christian-79
Posts: 134
Joined: November 22nd, 2004, 1:48 pm
Location: Germany

Activate browser window

Post by Christian-79 »

dorando wrote:user_pref("keyconfig.main.xxx_key__Keyword 1", "!][][][if(window.loadURI) loadURI(getShortcutOrURI('keyword',{}));");

Many thanks!

Is it possible, to activate the browser window per keyboard shortcut? Sometimes if I scroll down or up with the arrow keys, it won't work. If I jump to location bar by pressing Alt+D and then push Tab 2 times (1 time to overjump Googlebar) the browser window is active and up/down arrows do their l job again. Sometimes I have to do this to get Find as You Type to work. Doing it as I described, I think, the first frame is active, but there may be a way to activate only the browser window(?)

Regards

Christian
dave.elcock
Posts: 1
Joined: January 11th, 2005, 7:58 am

Delete mail marked as junk

Post by dave.elcock »

To add a shortcut to delete mail marked as junk in the current folder, add the following to prefs.js:

user_pref("keyconfig.main.xxx_key__Delete mail marked as junk", "!][][][deleteJunkInFolder();");

I've got mine set up as:

user_pref("keyconfig.main.xxx_key__Delete mail marked as junk", "control][J][][deleteJunkInFolder();");

This is v handy while still training Thunderbird's junk filter.

Cheers,
Dave.
Post Reply