Code Monkey home page Code Monkey logo

Comments (5)

morat523035 avatar morat523035 commented on September 26, 2024

Try this:

// Thunderbird 102
window.SetFocusMessagePane();

// Thunderbird 115
window.gTabmail.currentAboutMessage.getMessagePaneBrowser().focus();

There isn't a helper function like SetFocusMessagePane in Thunderbird 115.

You cannot run arbitrary javascript with tbkeys-lite. There is a tbkeys.xpi link on the GitHub releases page.

How to focus other panes:

// Thunderbird 102
window.SetFocusThreadPane();

// Thunderbird 115
window.gTabmail.currentAbout3Pane.threadTree.table.body.focus();
// Thunderbird 102
window.document.getElementById("folderTree").focus();

// Thunderbird 115
window.gTabmail.currentAbout3Pane.folderTree.focus();

About new mail front end
http://developer.thunderbird.net/thunderbird-development/codebase-overview/mail-front-end
http://developer.thunderbird.net/add-ons/updating/tb115/adapt-to-changes-in-thunderbird-103-115

from tbkeys.

MatthiasHGW avatar MatthiasHGW commented on September 26, 2024

Thank you very much, window.gTabmail.currentAbout3Pane.folderTree.focus(); works perfectly!

from tbkeys.

dantefromhell avatar dantefromhell commented on September 26, 2024

How to focus other panes:

// Thunderbird 102
window.SetFocusThreadPane();

// Thunderbird 115
window.gTabmail.currentAbout3Pane.threadTree.table.body.focus();

@morat523035
Thanks for these, they work well when viewing emails. However when I view a webpage loaded from one of my RSS feeds it triggers a reload of the page instead.

What is the correct way to make the pane switch work in email as well as RSS feed view?

from tbkeys.

morat523035 avatar morat523035 commented on September 26, 2024

I cannot reproduce a message pane reload using the focus method with the Mozilla Blog feed.

// Focus folder pane
window.gTabmail.currentAbout3Pane.folderTree.focus();

// Focus thread pane
window.gTabmail.currentAbout3Pane.threadTree.table.body.focus();

// Focus message pane
window.gTabmail.currentAboutMessage.getMessagePaneBrowser().focus();

// Reload message pane
window.gTabmail.currentAboutMessage.getMessagePaneBrowser().reload();

Mozilla Blog
http://blog.mozilla.org/feed/

from tbkeys.

dantefromhell avatar dantefromhell commented on September 26, 2024

Indeed I can confirm correct behaviour for the Mozilla Blog.

My feed was displaying NixOS/nixpkgs@402663d from https://github.com/NixOS/nixpkgs/commits/master/pkgs/games/factorio/versions.json.atom

Looking closer it actually didnt reload the webpage, but loaded the parent commit page, which is bound to keyboard shortcut p on the GitHub page. The same shortcut I have configured.

I was assuming that any keybinds for Thunderbird would not be forwarded to any content displayed. Is this not correct?

from tbkeys.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.