On Wednesday, 28 de September de 2011 08:20:38 [email protected] wrote: > Happy to add it to the lighthouse plugin if someone comes up with a > proposal. The API required for this should be rather simple. Basically > something to register global shortcuts and a signal when one of them gets > triggered.
I'm sure it's simple, but maybe not that simple. The API needs to deal with
the case that you ask for a shortcut but you don't get it because either the
system denied you access to it or because something else already is using it.
In order to implement shortcut editing dialogs, there should also be an API to
query whether a given combination is available or already taken.
What's more, Wayland still has no global shortcut API (I talked to the
maintainer yesterday to confirm this), so it would be nice if people got
involved in the project to start discussing how to standardise this.
> Only other issue is that shortcut handling (QShortCut) is currently in
> QtWidgets, not QtGui. The problem here is that someone needs to
> disentangle the class from QAction and other classes that should stay in
> widgets.
Long ago, when we started talking about gestures, I had a dream about having a
semantic level above the raw events. Touch events, mouse events, keyboard
events, tablet events, etc., are raw: they convey what action the user did,
but not what the user meant to do. There should be an interpretation layer
that is capable of interpreting multiple event sources over time and give a
resulting semantic. For example, imagine the case of zooming: it can be a key
press (ZoomIn key), Ctrl+Mouse Button 4 (Ctrl+WheelUp) or a two-finger pinch.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Qt5-feedback mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback
