Open unhammer opened 13 years ago
The best I have until now is:
key.setViewKey([["M-]"], ["M-["]], function (aEvent, aArg) {
command.focusElement(command.elementsRetrieverTextarea, 0);
}, "Focus to the first textarea", true);
key.setCaretKey([["M-]"], ["M-["]], function (aEvent, aArg) {
command.focusElement(command.elementsRetrieverTextarea, 0);
}, "Focus to the first textarea", true);
key.setEditKey("M-]", function (aEvent, aArg) {
ext.exec("focus-to-the-next-text-area", aArg);
}, "Focus to the next textarea", true);
key.setEditKey("M-[", function (aEvent, aArg) {
ext.exec("focus-to-the-previous-text-area", aArg);
}, "Focus to the previous textarea", true);
which puts focus in the first textarea and then goes through them. Unfortunately, it doesn't seem to cycle (I can't go from first straight back to last).
A better workaround seems to be to just use HoK.
I would like to do this:
(based on M-n/M-p, I want it to work like in w3m), but they seem to have no effect. What am I doing wrong?