Skip to content
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

Edit keys picks up Arabic or something #1251

Open
1 task done
jaggzh opened this issue Mar 20, 2024 · 2 comments
Open
1 task done

Edit keys picks up Arabic or something #1251

jaggzh opened this issue Mar 20, 2024 · 2 comments
Labels
cat.Data Issue relates to data (files, preferences, etc) cat.Input.Keyboard Issue relates to keyboard devices info.NeedInfo Please describe the issue more clearly platform.Linux.X Issue is reported on X protocol platform.Linux Issue is reported on Linux type.Bug Something isn't working as intended

Comments

@jaggzh
Copy link

jaggzh commented Mar 20, 2024

Description of bug

When attempting to assign 'z' to Undo (instead of Shift+z), I noticed a bug that's been happening on my system [in MyPaint] for years: The keystroke goes in as some foreign language -- looks to me like Arabic. Different letters do different things:

z shows:
SS_20240320_080154

x:
SS_20240320_080234

c:
SS_20240320_080254

(I'm pretty sure I reported this years ago.)

Notes:

  1. I've had Persian, Arabic, Spanish, etc. keyboard support on my system. Arabic WAS installed at the time I built brushes, libmypaint, and initially ran demo. (The same exact key assignment issue occurs with the 'official' (old!) mypaint from apt install, by the way). 2. I removed all other than English (US) keyboard before trying to test more -- it still does Arabic, but I didn't try rebuilding libmypaint, if that's part of this.
  2. I'm not hitting shift when assigning the key!

Steps to reproduce

  1. Log into my X11/KDE :) (No don't!)
  2. python setup.py demo
  3. Edit -> Edit prefs -> keys
  4. Try to assign any keystroke

Backtraces or error messages

Oh cool, just found INFO shows the char assigned (again, prefacing each with the kb key I hit):

This went in as z:
INFO: gui.accelmap: Changing entry '<Shift>Arabic_hamzaonyeh': '<Actions>/DocumentActions/Undo'
(I *think* that might be U+0626, or maybe U+08A8)

x:
INFO: gui.accelmap: Changing entry '<Shift>Arabic_hamza': '<Actions>/DocumentActions/Undo'
(Looks like U+0621)

c:
INFO: gui.accelmap: Changing entry '<Shift>Arabic_hamzaonwaw': '<Actions>/DocumentActions/Undo'
(Looks like U+0624)

MyPaint version

v2.5.1-git

Operating System(s)

Linux, Debian

Desktop Environment (Linux)

KDE, X11

Code of Conduct

  • I acknowledge that my conduct contributes to shaping the community.
@jaggzh jaggzh added info.Triage Need to triage this type.Bug Something isn't working as intended labels Mar 20, 2024
@jtojnar
Copy link
Contributor

jtojnar commented Mar 20, 2024

It does indeed look like Arabic. I am able to get ئ after switching to Arabic layout in GNOME and then pressing z in the Edit Key dialogue. But switching back to English makes z work again for me.

  • Do you perhaps have per-window layout switching policy?
  • Does the issue only happen after a while (e.g. after you have switched layouts some), or is it there from the time MyPaint is started? If the former, does the issue persist after restarting MyPaint or the computer?

It sounds like something got stuck. I would try re-adding another layout, and then switching to it and switching back to English while in the Edit Key dialogue.

@AesaraB AesaraB added cat.Input.Keyboard Issue relates to keyboard devices platform.Linux Issue is reported on Linux platform.Linux.X Issue is reported on X protocol cat.Data Issue relates to data (files, preferences, etc) and removed info.Triage Need to triage this labels Mar 20, 2024
@AesaraB
Copy link
Contributor

AesaraB commented Mar 20, 2024

Possibly related to #642

@AesaraB AesaraB added the info.NeedInfo Please describe the issue more clearly label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat.Data Issue relates to data (files, preferences, etc) cat.Input.Keyboard Issue relates to keyboard devices info.NeedInfo Please describe the issue more clearly platform.Linux.X Issue is reported on X protocol platform.Linux Issue is reported on Linux type.Bug Something isn't working as intended
Development

No branches or pull requests

3 participants