little-brother / sqlite-gui

Lightweight SQLite editor for Windows
GNU General Public License v2.0
1.07k stars 51 forks source link

Incompatible with Chinese input method #141

Closed denonleee closed 1 year ago

denonleee commented 1 year ago

Hi, When I use the native Chinese input method of Windows 11 x64, I cannot complete the correct input. For example, I want to enter 'yanse' in Chinese mode, 'se' activates autocompletion.

image image

Thanks!

little-brother commented 1 year ago

Unfortunally I can't check this error (if it's an error at all) because I don't have Win11 and Chinese keyboard :(

The autocomplete checks that you are not inside quotted string and suggests options. So the issue behaviour is predicted. What about some key shortcut to quick turn on/off the autocomplete e.g. F6? Also you can try to switch an autocomplete commiting to TAB (instead Enter) in Settings or turn it off by .set use-autocomplete 0 in the terminal.

denonleee commented 1 year ago

I checked again.This is not an error.

The reason is that the Chinese input method(native of Windows 11) will use single quotation marks to segment words automatically, resulting in the activation of automatic completion.

The solution is to turn off automatic completion or use the third part input method.