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
Shortcuts make entering text impossible on mobile browsers #15224
Comments
|
Seem to be a duplicate of #14711 but with a great description 😄 |
|
Reproduced on chrome (Android), when typing multiple times 's' or 'S' in the sql query box |
|
I'm using the browser plugin "User Agent Switcher" in Firefox and Chrome on Windows. This enables me to test the mobile view of websites. Once I switch to a mobile browser with the plugin and open PHPMyAdmin, the keyboard shortcuts are active even after entering the SQL command textarea. Maybe this helps finding the bug. |
|
I have examined the problem in more detail: The file "shortcuts_handler.js" uses the following code to disable the keyboard shortcuts for some special circumstances: if (e.target.nodeName === 'INPUT' || e.target.nodeName === 'TEXTAREA' || e.target.nodeName === 'SELECT') {
return;
}This means, the keyboard shortcut functions won't fire if you press a shortcut key while inside an input, a textarea or a select element. And this works very well! However, the problem is that the SQL command "area" is not (always) a I guess the above if statement should be extended in a way that also checks if the SQL command area is currently focused. |
|
Thank you for the debugging @JayEn84 ! |
|
It's the first time I'm trying to do a pull request, and I'm not sure if I screwed up. :) |
Good first pull-request ;) |
|
I could reproduce this issue using https://chrome.google.com/webstore/detail/user-agent-switcher/clddifkhlkcojbojppdojfeeikdkgiae and "Firefox on Android Mobile" |
Signed-off-by: William Desportes <williamdes@wdes.fr>
Describe the bug
When trying to type a SQL query in a mobile browser (specifically, Safari or Chrome on an iPad), the keyboard shortcuts always fire. For example, if you select the SQL editor and start typing ‘select’, the first ‘s’ brings up the settings menu.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should be possible to enter text into the SQL editor containing the letter ‘s’
Server configuration
Client configuration
Additional context
Perhaps an option to simply disable shortcuts in the settings would be an OK solution?
The text was updated successfully, but these errors were encountered: