Qalculate / qalculate-gtk

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

Problem with input direction #440

Open MortezaRahmani opened 1 year ago

MortezaRahmani commented 1 year ago

Problem: If I switch to a Right-to-Left keyboard language before opening Qalculate (e.g. Arabic, Persian, or Hebrew), the input direction of Qalculate will change to RTL and there is no way to change it back. In this case, I must close it, switch back to the English keyboard, and then open Qalculate again.

Is there a setting that prevents the input direction from changing?

qalculate

hanna-kn commented 1 year ago

I can confirm that keyboard layouts for RTL languages are problematic (especially since direction will change if an ASCII character, e.g. for a variable, function, or unit, is added) and affects all input fields. I assume that it would be preferable if LTR was used for mathematical expressions regardless of language or keyboard layout. Unfortunately I've not been able to find any solution.

Switching keyboard layout should however work without closing qalculate-gtk. On Windows (10) it seems necessary for the expression field, or the whole window, to lose and regain focus.

The same issue is present in gnome-calculator (https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/289).