GNOME Bugzilla – Bug 546819
Difficulty in entering '^' in some locales
Last modified: 2009-09-18 23:22:29 UTC
10^12 give 1 000 000 000 000 000 000 (18 zeros) and should give only 12 zeros 10^6 works fine 10^18 also doesnt, gives 18+6 zeros Also i would like to ask for support of pythons power expression: 10**12 10**6 It is much easier to write with the keyboard than moving with the keys or clicking in the xy symbol. Also pressing ^ doesnt work, maybe because in my keyboard i habe to write it by pressing Shift. Cheers.
Hi Diego, Were you in hexadecimal mode? In hex 10^12 has 18 zeros. The ^ symbol should work, what version are you using (help->about)? What language are you using? Thanks, --Robert
Yep, testing right now it seems like it works fine. How stupid i am? :P The symbol ^ doesnt work with my keyboard and requires to keep pressed Shift. Version 5.22.3 Thanks.
Not 100% sure what you mean about the ^ key. On my keyboard (US) I press shift-6 so I have to hold down shift. Does the ^ key work in other programs (e.g. gedit)? Check you don't have caps lock on as there was a bug since fixed that would stop some keys working.
My guess is that Diego has a keyboard layout where "^" is not a shifted key and therefore: {KEY_X_POW_Y, "x_pow_y", { GDK_SHIFT_MASK, GDK_SHIFT_MASK, 0 }, { GDK_caret, GDK_asciicircum, 0 }}, doesn't work properly.
In my keyboard (spanish) the key is at the right of the "P" letter and i have to hold down SHIFT. You can see it in the keyboard setup tool of gnome and adding a spanish keyboard. I have to Press SHIFT+^ but for it to be drawn in any text box i have to press a space or any other letter, but if i press the number "2", it writes an upper 2 which is not recogniced by most mathematical languages. So, in any editor to do X^Y it is always: PRESS "X" HOLD SHIFT PRESS "^" PRESS SPACE PRESS "Y" Very tedious when you write a lot of formulas. In gcalctool write 10^2 must be do by clicking with the mouse, at least with my keyboard. In Python they invented the use of asterisk as power ** which is a very good idea because then you can only use the numpad to do much more calculations. Its more confortable. Cheers.
Updating to reflect this is a feature request, i.e. 1. It can be hard to type '^' in some locales 2. It may be nice to use python style powers (i.e. '^' == '**')
*** Bug 590620 has been marked as a duplicate of this bug. ***
Created attachment 143413 [details] [review] Supports '^' keycode used in some locales (German, Spanish...) and converts two consecutive '*' to '^'
Hard code freeze break requested: "Hi, A bug [1] has been reported against gcalctool 5.27.92 (and earlier) showing that the power key '^' is unable to be entered in some keyboard layouts (e.g. German, Spanish etc). This is a feature that has been broken since at least 2.22 and causes difficulty for non-English layout users. The attached patch fixes this problem by catching the keycode that is being used in these layouts and also converting two consecutive '*' to a '^'. I am the maintainer of gcalctool and I approve this patch. [1] https://bugzilla.gnome.org/show_bug.cgi?id=546819 Thanks, --Robert Ancell GCalctool Maintainer" If allowed this will be in 2.28.0, otherwise 2.28.1.
Fixed for 2.28: http://git.gnome.org/cgit/gcalctool/commit/?id=f89456712edb758eae899457acad6665ffcd9faa