morat523035

Results 77 comments of morat523035

@eyolf Some of the [common key bindings](https://github.com/wshanks/tbkeys#common-key-bindings) need to be updated. I got the following commands working in Thunderbird 115. ``` window.document.getElementById('tabmail-tabs').advanceSelectedTab(1, true); window.document.getElementById('tabmail-tabs').advanceSelectedTab(-1, true); window.gTabmail.tabContainer.advanceSelectedTab(1, true); window.gTabmail.tabContainer.advanceSelectedTab(-1, true); window.CloseTabOrWindow();...

@williamgrimes Remember to include window objects in custom commands. Troubleshooting... http://forums.mozillazine.org/viewtopic.php?p=14872763#p14872763

@Cleverson Try this: ``` (function () { function onWindowKeypress(aEvent) { window.removeEventListener('keypress', onWindowKeypress, true); var folderTree = window.gTabmail.currentAbout3Pane.folderTree; var letter = window.String.fromCharCode(aEvent.charCode).toLowerCase(); var i, l; for (i = folderTree.selectedIndex + 1,...

@p135246 Use the mime2DecodedAuthor property of a message header to get the sender. Try these: ``` (function () { var msgHdr = window.gTabmail.currentAbout3Pane.gDBView.hdrForFirstSelectedMessage; if (msgHdr) { var date = new...

@p135246 Try the following code snippets in Thunderbird 115: ``` (function () { window.goDoCommand('cmd_showQuickFilterBar'); var textbox = window.gTabmail.currentAbout3Pane.document.getElementById('qfb-qs-textbox'); textbox.inputField.value = window.gTabmail.currentAboutMessage.currentHeaderData.from.headerValue; })(); ``` ``` (function () { var quickFilterBar =...

Your addon should work exactly like the second code snippet that I posted above. Reference http://webextension-api.thunderbird.net/en/115/mailTabs.html#setquickfilter-tabid-properties http://searchfox.org/comm-esr115/search?q=async+setQuickFilter

@agenbite Try these: * move thread pane selection to top ``` (function () { var threadTree = window.gTabmail.currentAbout3Pane.threadTree; var threadPane = window.gTabmail.currentAbout3Pane.threadPane; threadPane._jsTree.ensureRowIsVisible(0); threadTree._selection.select(0); })(); ``` Or ``` (function ()...

Here are the other commands. * move thread pane selection up a page ``` (function () { var threadTree = window.gTabmail.currentAbout3Pane.threadTree; var rowCount = threadTree.view.rowCount; var currentIndex = threadTree.currentIndex; var...

Are you asking to configure something like the select multiple adjacent messages keyboard shortcut? > Select the first message of your intended selection, and then either Shift + Click on...

Here is how to change the focus up or down, but not the selection. ``` window.gTabmail.currentAbout3Pane.threadTree.currentIndex -= 1; ``` ``` window.gTabmail.currentAbout3Pane.threadTree.currentIndex += 1; ``` Reference http://searchfox.org/comm-esr115/search?q=Change+focus&path=tree-view.mjs The event[accelKeyName] expression is...