Code Monkey home page Code Monkey logo

Comments (5)

wshanks avatar wshanks commented on June 6, 2024 1

Oops, sorry. Playing around a little more I came up with this:

window.document.getElementById("messagepane").contentDocument.documentElement.getElementsByTagName("body")[0].scrollBy(0, 100)

The last 100 is the amount to scroll in pixels in the vertical direction.

from tbkeys.

wshanks avatar wshanks commented on June 6, 2024

I found it here: https://searchfox.org/mozilla-central/source/editor/libeditor/EditorController.cpp. I think that is defining commands that are active within text boxes though, like when you compose a message. Is that where you wanted to use the shortcut? Currently, shortcuts do not work in the compose window (#23).

from tbkeys.

the-solipsist avatar the-solipsist commented on June 6, 2024

No, I didn't mean within compose windows. I meant in the message pane (the other two panes being the message list pane and the folder list pane).

from tbkeys.

wshanks avatar wshanks commented on June 6, 2024

I am not sure about the command but this works for me: window.document.getElementById('threadTree').scrollByLines(1)

from tbkeys.

the-solipsist avatar the-solipsist commented on June 6, 2024

I feel this should be re-opened, since the issue wasn't about the thread tree (aka the message list pane, which displays the list of all the e-mails in a selected folder); the issue was about the message pane (the pane where you read the e-mail's content). The commands window.document.getElementById('threadTree').scrollByLines(1) and window.document.getElementById('threadTree').scrollByLines(-1) operate on the thread tree, not the message pane. There's a chance that the command has been accidentally removed within Thunderbird. I can find these four occurrences using the searchfox tool, but they all seem to be in the Firefox browser.

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.