Summary: | Can't invoke shortcuts which require holding a key while using non US layouts | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Raghavendra kamath <raghu> |
Component: | Usability | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | dimula73, halla |
Priority: | NOR | ||
Version First Reported In: | git master (please specify the git hash!) | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Raghavendra kamath
2021-03-10 11:10:40 UTC
It works if we re-assign the shortcut with the key that is mapped to R in the layout, but since other keys like < and > work as expected in local layouts (non Us layout) user would expect these to work too. https://github.com/nyanpasu64/qkeycode/ says that QKeyCode::key() is layout dependent and tries to work around that, but with still a bunch of bugs. Qt uses QKeyMapper::possibleKeys(event) mapper that maps the even to keys in all possible layouts. We could theoretically reuse this code... Okay, it is not very easy to implement in KisShortcutsMatcher. Theoretically, possible, but requires quite a bit of work. |