keyconfig 20110522
-
- Posts: 13
- Joined: August 23rd, 2010, 2:38 am
Re: keyconfig 20110522
I have PM the private FTP to you. Please check it. Thanks.
-
- Posts: 117
- Joined: June 9th, 2005, 8:30 am
- Location: France
Re: keyconfig 20110522
For Thunderbird
I have open the list of mailboxes of an account, the list is long and take more than a screen.
How to define a short-cut to close the list or go back to the top ?
I have open the list of mailboxes of an account, the list is long and take more than a screen.
How to define a short-cut to close the list or go back to the top ?
-
- Posts: 2
- Joined: September 23rd, 2015, 12:51 pm
Re: keyconfig 20110522
Folks,
I would like to share four pieces of code I put together recently so that others may benefit from it. They all are under the theme of expanding/collapsing folder trees.
The first one expands all branches of a tree:
The counterpart collapses all branches of a tree (note that it does so from the bottom up so that they don't show expanded when reopened):
The next one expands a single branch and selects the first row in the branch:
The final one collapses the current branch and selects the parent row:
Enjoy!
I would like to share four pieces of code I put together recently so that others may benefit from it. They all are under the theme of expanding/collapsing folder trees.
The first one expands all branches of a tree:
Code: Select all
// Expand all branches of a tree - Ctrl+Right Arrow
var tree = document.getElementById('folderTree');
if ( tree ) {
var view = tree.view;
var row = tree.currentIndex;
var parentIndex = row;
do {
tree.changeOpenState(row, true);
row++;
} while (row < view.rowCount && parentIndex <= view.getParentIndex(row))
}
The counterpart collapses all branches of a tree (note that it does so from the bottom up so that they don't show expanded when reopened):
Code: Select all
// Collapse all branches of a tree - Ctrl+Left Arrow
var tree = document.getElementById('folderTree');
if ( tree ) {
var view = tree.view;
var row = tree.currentIndex;
var parentIndex = row;
do {
row++;
} while (row < view.rowCount && parentIndex <= view.getParentIndex(row))
do {
row--;
tree.changeOpenState(row, false);
} while (row > parentIndex)
}
The next one expands a single branch and selects the first row in the branch:
Code: Select all
// Expand a single branch and select the first row in the branch - Ctrl+[
var tree = document.getElementById('folderTree');
if ( tree ) {
var row = tree.currentIndex;
if (tree.changeOpenState(row, true)) {
tree.view.selection.select(row+1);
tree.treeBoxObject.ensureRowIsVisible(row+1);
}
}
The final one collapses the current branch and selects the parent row:
Code: Select all
// Collapse a branch and select the parent row - Ctrl+]
var tree = document.getElementById('folderTree');
if ( tree ) {
var row = tree.currentIndex;
var parentIndex = tree.view.getParentIndex(row);
tree.changeOpenState(parentIndex, false);
tree.view.selection.select(parentIndex);
tree.treeBoxObject.ensureRowIsVisible(parentIndex);
}
Enjoy!
-
- Posts: 1
- Joined: September 25th, 2015, 12:44 am
Re: keyconfig 20110522
Many, many years ago, dorando posted the code for a key to switch the focus to the folder pane or the thread pane in Thunderbird, using SetFocusFolderPane() and SetFocusThreadPane(). See viewtopic.php?p=2923606.
Getting the latter one to work was no problem: I can now use a key to switch to the thread pane. However, for the life of me, I haven't been able to get the former one working: there's no way that in Thunderbird 38.2.0 I can get the key to switch the focus to the folder pane to function as I would like it to.
The code is as specified, the key combination I use is available and, as said, the other one works just fine.
Has anything changed in Thunderbird's behaviour? Am I overlooking something simple?
Thanks to anyone who can help me out on this one!
[Update]
After lots of searching, I stumbled upon the solution:
document.getElementById("folderTree").focus()
...does the trick
Getting the latter one to work was no problem: I can now use a key to switch to the thread pane. However, for the life of me, I haven't been able to get the former one working: there's no way that in Thunderbird 38.2.0 I can get the key to switch the focus to the folder pane to function as I would like it to.
The code is as specified, the key combination I use is available and, as said, the other one works just fine.
Has anything changed in Thunderbird's behaviour? Am I overlooking something simple?
Thanks to anyone who can help me out on this one!
[Update]
After lots of searching, I stumbled upon the solution:
document.getElementById("folderTree").focus()
...does the trick
-
- Posts: 2
- Joined: October 13th, 2015, 10:19 am
Re: keyconfig 20110522
Can anyone here provide me signed version of keyconfig?
- DanRaisch
- Moderator
- Posts: 127233
- Joined: September 23rd, 2004, 8:57 pm
- Location: Somewhere on the right coast
Re: keyconfig 20110522
You can get that from the AMO site -- https://addons.mozilla.org/en-US/firefo ... ey-config/
- WildcatRay
- Posts: 7484
- Joined: October 18th, 2007, 7:03 pm
- Location: Columbus, OH
Re: keyconfig 20110522
DanRaisch wrote:You can get that from the AMO site -- https://addons.mozilla.org/en-US/firefo ... ey-config/
Anyone know if the key bindings need to be redone? (I would assume so.)
Ray
OS'es: 4 computers with Win10 Pro 64-bit; Current Firefox, Beta, Nightly, Chrome, Vivaldi
OS'es: 4 computers with Win10 Pro 64-bit; Current Firefox, Beta, Nightly, Chrome, Vivaldi
-
- Posts: 2
- Joined: October 13th, 2015, 10:19 am
Re: keyconfig 20110522
DanRaisch wrote:You can get that from the AMO site -- https://addons.mozilla.org/en-US/firefo ... ey-config/
I need dorando's version. It's much better in customizing shortcuts.
-
- Posts: 1
- Joined: October 16th, 2015, 8:23 pm
Re: keyconfig 20110522
Same here. Unfortunately, I cannot PM RDL (yet).forbrute wrote:I need dorando's version. It's much better in customizing shortcuts.DanRaisch wrote:You can get that from the AMO site -- https://addons.mozilla.org/en-US/firefo ... ey-config/
-
- Posts: 1258
- Joined: August 22nd, 2004, 1:39 am
Re: keyconfig 20110522
Well, I replied to your PM but you haven't yet read my reply.forbrute wrote:Can anyone here provide me signed version of keyconfig?
I've been up all night so I'm going to sleep. I'll try to look out for your PM when I'm awake.Leo van der Waal wrote:..Same here. Unfortunately, I cannot PM RDL (yet).
-
- Posts: 26
- Joined: April 9th, 2012, 8:23 am
Re: keyconfig 20110522
Please how can I emulate keydown (or keyup) event for Esc key?
-
- Posts: 4480
- Joined: March 19th, 2005, 10:51 am
Re: keyconfig 20110522
that is not possible:
https://addons.mozilla.org/de/firefox/a ... cclosetab/
https://addons.mozilla.org/de/firefox/a ... cclosetab/
I was unable to use my favorite custom hotkey (Close active tab on Esc key), defined with the Dorando's keyconfig extension
the magic number is 51 and you are probably part of it
-
- Posts: 1934
- Joined: February 10th, 2008, 6:30 am
- Location: Hungary
Re: keyconfig 20110522
Hello!
Is there some code I can use to cycle between languages of spell checking? I only have two languages, and it's rather frustrating to get to the language section of the context menu.
Historically dictionary switcher used to work well, but nowadays it's broken on most websites' text fields. And I found no alternative to automatization.
Is there some code I can use to cycle between languages of spell checking? I only have two languages, and it's rather frustrating to get to the language section of the context menu.
Historically dictionary switcher used to work well, but nowadays it's broken on most websites' text fields. And I found no alternative to automatization.
-
- Posts: 153
- Joined: January 23rd, 2009, 9:14 pm
- Location: Germany
Re: keyconfig 20110522
I got this previously in this forum. You need one key binding for each dictionary. Set the respective language in the first line (e.g. "en-US")avada wrote:Hello!
Is there some code I can use to cycle between languages of spell checking? I only have two languages, and it's rather frustrating to get to the language section of the context menu.
Historically dictionary switcher used to work well, but nowadays it's broken on most websites' text fields. And I found no alternative to automatization.
Code: Select all
var dictionary = "de-DE";
var Cc = Components.classes; var Ci = Components.interfaces;
Cc['@mozilla.org/spellchecker/engine;1'].getService(Ci.mozISpellCheckingEngine).dictionary = dictionary;
var nsIContentPrefService2 = Cc["@mozilla.org/content-pref/service;1"].getService(Ci.nsIContentPrefService2);
var target = document.commandDispatcher.focusedWindow;
if(target == window) target = content;
var loadContext = target.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation).QueryInterface(Ci.nsILoadContext);
nsIContentPrefService2.set(target.location, "spellcheck.lang", dictionary, loadContext);
Services.prefs.setCharPref("spellchecker.dictionary", dictionary);
-
- Posts: 1934
- Joined: February 10th, 2008, 6:30 am
- Location: Hungary
Re: keyconfig 20110522
Thanks for the tip. I'll try it.
I seems like it could be enhanced to what I want, if there was a way to get/determine the current language.
I seems like it could be enhanced to what I want, if there was a way to get/determine the current language.