Bug 510697

Summary: Mod3 on de neo layout opens quick filter
Product: [Frameworks and Libraries] frameworks-kio Reporter: leonhard+kde.org
Component: Open/save dialogsAssignee: KIO Bugs <kio-bugs-null>
Status: REPORTED ---    
Severity: minor CC: kdelibs-bugs-null
Priority: NOR    
Version First Reported In: 6.19.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Quick filter activated on Mod3 in Open/Save dialogue

Description leonhard+kde.org 2025-10-16 20:37:05 UTC
Created attachment 185845 [details]
Quick filter activated on Mod3 in Open/Save dialogue

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY

With the German (de) keyboard layout variant Neo2 [1] using the right Mod3 key (which is used for the character "#" on the standard 105-key layout[2]) within the Open/Save dialog activates the quickfilter and also shifts the focus to it. 


[1] https://neo-layout.org
[2] https://en.wikipedia.org/wiki/Keyboard_layout#/media/File:ISO_keyboard_(105)_QWERTY_UK.svg

STEPS TO REPRODUCE
1. Switch the keyboard layout to German (Neo2)
2. Open a „Save file“ dialogue
3. Press the "#" key

OBSERVED RESULT

Quick filter bar opens

EXPECTED RESULT

No action (key is used as a modifier like shift)

SOFTWARE/OS VERSIONS

Operating System: Arch Linux
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0

ADDITIONAL INFORMATION

The use of the left-hand mod3 key (caps lock) does not open the quick filter.

The key used for "#" in the German layout is apparently used for "\" on the US layout. It is or was used as a short cut for opening the filter bar — on the US layout that is. I could not open the filter bar using any single key with the “normal” German "qwertz" layout, especially not # (\ on the US layout) nor with Alt Gr+ß (prints \ on German layout). So it does not appear to be really hard coded.

I’m reasonably certain I found the code which represents the filter bar (KFileWidgetPrivate::initQuickFilterWidget()) and where it’s instantiated but understanding how a key triggers showing/hiding it is where I’m currently stuck.

First version I got around to analyse this with was kio 6.17.0-1 on Arch Linux.

https://github.com/KDE/kio/blob/508f830e56ca89086a3b79ee2713138751321d6c/src/filewidgets/kfilewidget.cpp#L1362

https://github.com/KDE/kio/blob/508f830e56ca89086a3b79ee2713138751321d6c/src/filewidgets/kfilewidget.cpp#L404

Bonus Bug: When trying to add a new keyboard layout in the system settings I can filter using umlauts, e.g. "ö", but the filter on the variant (right) side of the dialogue will be empty. If I use "deu" instead I can select "Deutsch (Österreich)" on both sides. So filtering using umlauts is probably broken.