Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
betafcc opened this issue May 4, 2021 · 4 comments · Fixed by #683
Closed

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

betafcc opened this issue May 4, 2021 · 4 comments · Fixed by #683
Labels

Comments

@betafcc
Copy link

betafcc commented May 4, 2021

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

bug (7)

Environment

  • Sqlectron 1.36.0
  • MacOS Big Sur
  • Bare mysql:8 from docker image (just run docker run -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password mysql:8)
  • full config file:
{
  "servers": [
    {
      "id": "cb508927-9f47-41b7-b457-150425a2045a",
      "name": "mysql",
      "client": "mysql",
      "ssl": false,
      "host": "localhost",
      "port": 3306,
      "socketPath": null,
      "user": "root",
      "password": {
        "ivText": "6lv2/JcFt9rMLiANclLr0A==",
        "encryptedText": "GIYgFDGkmI0ZuYBBdK8Prg=="
      },
      "schema": null,
      "encrypted": true
    }
  ],
  "zoomFactor": 1,
  "limitQueryDefaultSelectTop": 100,
  "enabledAutoComplete": false,
  "enabledDarkTheme": false,
  "disabledOpenAnimation": true,
  "csvDelimiter": ",",
  "connectionsAsList": false,
  "customFont": "Lato",
  "log": {
    "console": true,
    "file": false,
    "level": "error",
    "path": "/Users/brendon.faccion/Library/Preferences/Sqlectron/sqlectron.log"
  },
  "enabledLiveAutoComplete": false
}

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
Copy link
Member

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.

@maxcnunes maxcnunes added the bug label May 4, 2021
@Kos-M
Copy link

Kos-M commented Sep 7, 2021

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
Copy link

sandro commented Sep 21, 2021

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

@sveneh
Copy link

sveneh commented Mar 11, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants