- AuthorPosts
- May 7, 2009 at 11:05 am #7263MikeMember
Using ctrl+tab switches between tabs in some kind of last used order. I want to switch to the left or right as they are appear in the tabs.
Also I have added alt+left/right as keyboard shortcut but that only switches between two documents.
May 7, 2009 at 12:03 pm #7264MikeMemberDuh, ok I have made my first javascript, :-( , to solve it.
But I still would not mind if this was a “native” option.// Move to right
var docs = new Enumerator(editor.Documents);
var current = editor.ActiveDocument;
var first = null;
var doc = null;for(; !docs.atEnd(); docs.moveNext() ){
doc = docs.item();
if (first == null) first = doc;if (doc == current) {
docs.moveNext();
doc = docs.item();
if (doc == null) doc = first;
break;
}
}
if (doc != null) doc.Activate();// Move to left
var docs = new Enumerator(editor.Documents);
var current = editor.ActiveDocument;
var last = null;
var doc = null;
for(; !docs.atEnd(); docs.moveNext() ){
doc = docs.item();
if (doc == current && last != null) break;
last = doc;
}
if (last != null) last.Activate();May 7, 2009 at 4:49 pm #7267Yutaka EmuraKeymasterMike wrote:
Using ctrl+tab switches between tabs in some kind of last used order. I want to switch to the left or right as they are appear in the tabs.Also I have added alt+left/right as keyboard shortcut but that only switches between two documents.
Please read this:
http://www.emeditor.com/modules/xoopsfaq/index.php?cat_id=9#q102
“Is there a way to make EmEditor move through document tabs in sequential order from left to right?” - AuthorPosts
- You must be logged in to reply to this topic.