Custom key bindings stop working while in SQL Editor tab
See original GitHub issueSystem information:
- Operating system (distribution) and version: MacOs Mojave v10.14.4
- DBeaver version: 6.0.4.201905052017 (but also seen in last several versions)
- Java version: 1.8.0_181
- Additional extensions: None, N/A
Connection specification:
- Database name and version N/A (but Azure MSSQL)
- Driver name MS JDBC
- Do you use tunnels or proxies (SSH, SOCKS, etc)? No
Describe the problem you’re observing:
I have modified key bindings for home/end keys set up on Line End / Line Start command, when ‘Editing Text’ with Category ‘Text Editing’ for use in SQL Editor tabs. These work fine at DBeaver start-up but after running the program for a bit (minutes to days), the key bindings stop working and revert to default. The bindings still exist in preferences but don’t work.
Stopping and restarting the application restores the custom functionality.
Steps to reproduce, if exist:
Issue manifests itself in a SQL Editor tab after application has been open anywhere from minutes to days while editing. Not able to reproduce on demand until it happens on its own, and then the issue remains until DBeaver is restarted.
Include any warning/errors/backtraces from the logs
No new errors in logs after this happens other than the following at about the same time (though may not be related, and only noticed this today):
2019-05-17 11:24:02.074 - Resource 'meta.org.jkiss.dbeaver.model.DBPObjectWithDescription.description.name' not found in bundle org.jkiss.dbeaver.ext.mssql
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:11
Top GitHub Comments
MacOs Catalina 10.15.7 dbeaver 7.3.2
Same issue.
I also see the following behaviour:
If I turn on “show key binding when command is invoked” then I can see what command dbeaver thinks is being invoked as I hit it.
I have the following settings: HOME -> Start of Line of Text END -> End of Line of Text SHIFT+HOME -> Select to start of line of Text SHIFT+END -> Select to end of line of Text
when using SHIFT/HOME or SHIFT/END in the SQLEditor dbeaver gets it right:
but when I use the HOME or END keys directly it displays the binding that I expect, but the behaviour is wrong (I get end of all text instead of end of line of text). It appears that despite displaying
LINE START/END
the editor is actually executingTEXT START/END
Key bindings work correctly when the App has been opened recently. I can’t find an exact event that causes the home/end key bindings change to “Text Start” instead of “Line Start”
I am having the same issue in MacOS Catalina -Keybinding is lost - “Home” and “End” keys won’t work.
Steps to reproduce Open SQL Script Editor. Issue an invalid SQL Statement and execute.