sqlectron / sqlectron-gui

A simple and lightweight SQL client desktop with cross database and platform support.
https://sqlectron.github.io/
MIT License
4.58k stars 524 forks source link

Can't input text on editor after a query without clicking discard #646

Closed betafcc closed 2 years ago

betafcc commented 3 years ago

After executing a query, the editor becomes irresponsive for inputting text, somehow the backspace does work:

bug (7)

Environment

Steps to reproduce:

1 - Set up mysql db with docker run -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password mysql:8 2 - Open sqlectron and connect to it 3 - Click on the mysql db, then the db table 4 - Edit the auto-generated query from LIMIT 100 to LIMIT 2 to confirm the editor works and run it 5 - Try to change LIMIT 2 to LIMIT 1

You should fail to input text although the backspace does work. After clicking discard the editor does come back to normal.

maxcnunes commented 3 years ago

I noticed that too recently but forgot to open a ticket for it, so thanks for reporting it. While we don't have a proper fixing for it, the workaround I have been using is clicking on the tab title, it seems to unlock the text editor after that.

Kos-M commented 3 years ago

You can continue edit , if you click anywhere outside input area, for example in result rows , and then click/focus on input again. This is definately a bug, but i think it has relation with focus , something is block edit..

sandro commented 3 years ago

I use CMD-f to bring up the finder dialog, which restores input.

sveneh commented 2 years ago

This is still happening in the current version v1.37.1 . It is quite annoying.