KAction and KShortcut in frameworks

David Faure faure at kde.org
Sun May 13 09:13:06 UTC 2012


On Saturday 12 May 2012 18:36:42 Mark wrote:
> 3. There needs to be some way of storage for keys, give them a default
> value and restore that value on the user request. This is what KDE has with
> Shortcut Editor. The app itself should not be in Qt, but the storage of the
> data should live in Qt to make it platform independent.

Qt doesn't even have a configuration framework at this point (QSettings is on 
the way out). This is why I hadn't been suggesting to do "configurable 
shortcuts" in Qt at this point.

> As for making a "HIG" keyboard standard list. A very good starting point is:
> http://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts
> 
> Every single line where the same key combination is used in both: Windows,
> Mac, KDE en GNOME can be considered as de-facto standard key imho. Though
> the list has to be viewed with care since the very first item "Activate
> current application's Menu bar" is already wrong for KDE. It's not just
> ALT. It's ALT + M iirc.
> 
> While looking at that wiki list i'm quickly realizing that we're never
> going to get a standard keyboard + mouse mapping for generic keys across
> all major desktop environments..

Did you take a look at the existing list of standard shortcuts in Qt?
Type QKeySequence::StandardKey in Qt assistant.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list