Bug 457065 - Respect input method when typing filename prefixes
Summary: Respect input method when typing filename prefixes
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 20.04.2
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-24 08:52 UTC by hierophanie
Modified: 2022-07-24 08:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hierophanie 2022-07-24 08:52:03 UTC
Hello,

Currently, when typing incrementally the prefix of a filename to "jump" to it in the main interface, only single-key events are taken into account. This is fine if all characters in a given filename are bound to a single keyboard key, but this is often not the case. Plenty of keyboard mappings use dead keys, and there are also many input methods that use compose sequences to represent characters in various languages.

To handle such cases, it is necessary to pass each key event through the input method handler and, depending on what it returns, either do nothing (if a dead key was pressed or if we're within a compose sequence), or lookup filename prefixes (if the return value is a string), or do something else (for keyboard keys like arrows, etc.)

If I remember well, XFCE's file manager, Thunar, supports this well. I don't know much about Qt, though.

Best,

Michael