Comments (7)
I have not had a chance to test this but it sounds reasonable. The add-on checks the selected element to determine if it should capture shortcut keys or let them through and all the textbox-like elements are hard-coded. There must have been some new one used that the code does not have listed at the moment. The way I usually check for this is to edit the code and have it log the properties of the selected element on key events to figure out what needs to be added to the textbox check.
from tbkeys.
Thanks. I hope you will be able to find a fix. In case it makes any difference, the problem occurs for me even if I use just the default key settings. I uninstalled and re-installed the add-on and still get the problem.
Bill
from tbkeys.
Same is true for an editor session the sieve plugin:
https://github.com/thsmi/sieve/
is opening. Since TB91 I have to c&p my changes to sieve scripts to avoid the actions from tbkeys. Everything was fine in TB78.
from tbkeys.
I looked at this some now. In the debugger I see that when the built-in browser tab for the addons page has focus the element's tagName is "browser". I can add that to the set of tags that tbkeys ignores. I poked around at the browser object but couldn't see how to access its internal state. So I don't see how to detect if a text element has focus inside of the browser. For now, I will just ignore the entire browser tab. If someone finds a way to ignore just selected text elements in the browser, we could do that.
I tried installing sieve, but I could not get to the editor UI because I do not have account with an email provider that supports sieve. @m707 if you want, you can try to figure out yourself what element needs to be ignored. Here are the steps I used:
- Open the developer toolbox (ctrl+shift+i, or tools->developer tools->developer toolbox).
- ctrl+shift+f and search for "tbkeys"
- Click on a line from "implementation.js" to open the file (for me this is the only file in wihch "tbkeys" is found by the search).
- Click on a line number inside of
stopCallback
to set a breakpoint there (like thelet firstCombo = combo;
line). - Press a key in the sieve editor to trigger the breakpoint.
- In the right hand pane of the toolbox window, there will be a "scopes" section that has the variables for the
stopCallback
function. - Check what the value of the
tagName
variable is. Maybe we can add that to the ignore list. - You could also expand and poke around at the
element
variable which is the selected element when the key was pressed to see if there are any other properties that would be important to check when deciding whether or not to capture the keypress. This probably isn't necessary -- only if thetagName
had some generic value that we don't want to ignore all the time.
from tbkeys.
Thanks for looking into it. Will you be putting out a new version?
Thanks,
Bill
from tbkeys.
Yes, it is released on github now and I submitted it to addons.thunderbird.net (which I never did for version 2.1.2).
from tbkeys.
I downloaded it from Github and the problem I reported is fixed. I am now able to type into the search field.
Thanks!
Bill
from tbkeys.
Related Issues (20)
- plain key should not trigger main key bindings inside quick filter search and global search HOT 3
- Shortcuts not mapped on quick search box HOT 5
- MsgMoveMessage in V115 HOT 1
- Focus the message pane in V115 HOT 5
- [Question] Realize a shortcut, when there's no "cmd_***"? Example: HTML format "paragraph". HOT 16
- `func:MsgSortThreaded` results in `TypeError: win[cmdBody] is not a function` HOT 2
- vim visual line mode-like selection navigation HOT 5
- Allow a macro (i.e. sequence of commands) bound to a single key combination in tbkeys-lite
- Migrate settings HOT 3
- Is this repo still maintened yet? HOT 1
- Keys do not work on open email window HOT 5
- How to trigger fullscreen? HOT 3
- Unset "m" causes menu accelerator to fail HOT 3
- Command to open Addons - Extensions tab HOT 2
- How to remove default tbkeys-lite keybindings HOT 6
- A command of a contextual menu item HOT 6
- The add-on is disabled on TB 128.0esr HOT 3
- TB v.128 HOT 2
- tbkeys captures the keyboard input in the quick filter fields in TB128.0esr HOT 2
- Recover settings from disabled add-on. HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tbkeys.