Qalculate / qalculate-gtk

Qalculate! GTK+ UI
https://qalculate.github.io/
GNU General Public License v2.0
956 stars 69 forks source link

Open Parenthesis can not be Typed on Windows with Japanese IME #509

Open Naruyoko opened 10 months ago

Naruyoko commented 10 months ago

Description

On Windows, trying to type open parenthesis "(" with Japanese keyboard layout+IME through Shift+8 puts "×". This means I can't open parenthesis like I type.

Shift+9 puts ")" as expected. Ctrl+Shift+9 also surrounds the cursor with a pair of parenthesis as expected. Shift+8 does type an open parenthesis inside a string literal (i.e. after a single or a double quote). Disabling IME and using the US English layout also works around this issue (since the open parenthesis is now at Shift+9).

Note: I have not tested this on other OS, so I don't know if this is specific to Windows.

Environment

Steps to Reproduce

  1. Open the app.
  2. Type Shift+8.

Expected Behavior

I get "(" in the input.

Actual Behavior

I get "×" in the input.

hanna-kn commented 10 months ago

When activate Japanese keyboard layout in Windows, Shift+9 and Shift+0 inputs parentheses, while Shift+8 inputs asterisk. Unless cursor is within quotes, the asterisk key inputs "×". I have thus not been able to reproduce the issue.

hanna-kn commented 10 months ago

It seems likely that the issue is caused by supporting libraries (erroneously?) reporting Shift+8 as asterisk key, despite by default inputing left parenthesis.

Naruyoko commented 7 months ago

I tested this again on 5.0.0. The GTK version (qalculate-gtk.exe) still has this issue. The Qt version (which is now the one shipped through PortableApps) does not have this problem.