Add Ctrl+H to the list of shortcuts for "show/hide hidden files"
ClosedPublic

Authored by ngraham on Feb 17 2018, 8:58 PM.

Details

Summary

CCBUG: 390527

Like D10558: Also use standard keyboard shortcut for "show/hide hidden files", but for the file dialogs too, to maintain consistency.

Test Plan

Tested with Open and Save dialogs in Kate. New and old shortcuts all worked and correctly triggered showing and hiding hidden files

Diff Detail

Repository
R241 KIO
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
ngraham created this revision.Feb 17 2018, 8:58 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptFeb 17 2018, 8:58 PM
ngraham requested review of this revision.Feb 17 2018, 8:58 PM
markg accepted this revision.Feb 17 2018, 9:28 PM
markg added a subscriber: markg.

Fine by me.
I do wonder why it used to be in an if statement though. It would have added a nullptr if the "if (showHidden)" check failed (which would fail when it's a nullptr).

This revision is now accepted and ready to land.Feb 17 2018, 9:28 PM

The file dialog uses two different methods of setting shortcuts. Most are set in kdiroperator.cpp, but only few are set in kfilewidget.cpp I suspect legacy code, and it seems sensible to use the more standard, consistent style whenever possible.

ngraham closed this revision.Feb 18 2018, 9:56 PM