[Development] Forum Discussion Page for 'mouse shortcuts'
Rick Stockton
rickstockton at reno-computerhelp.com
Mon Dec 26 22:20:16 CET 2011
Final design and subsequent coding in Qt, starting in about a week.
I have created a Qt Devnet forum Thread for work on Mouse Shortcuts.
It's at http://developer.qt.nokia.com/forums/viewthread/12843
Right now, it's only got my initial post, which proposed code based on
the same scheme as keyboard shortcuts (QKeySequence, QshortcutEvent, and
QShortcut working with Qt signals and slots.) In my SIMPLE design, there
will be 3 ways to invoke a mouse-based shortcut: mouse button click,
button doubleclick, or holding one button down while clicking a second.
You will not be able to mix keyboard keypress events and mouse button
events together as a shortcut invocation sequence. (Invocations will
consist of QKeySequence sets on the keyboard, OR mouse button actions --
not the two together.)
You will be able to execute the same shortcut Action by performing
alternative invocation sequences on the two devices. The 'Back' Shortcut
Action, for example, can be invoked by either 'Alt + left' on the
keyboard, OR the back button on the mouse, in a KDE or GNOME
environment. (As Qt-provided defaults.) And of course, KDE will
ultimately have a "configure your mouse shortcuts" module with all the
bells and whistles which are now present in 'KHotkeys'. ('Global'
shortcuts versus 'Application' shortcuts, etc.).
I will attempt to do one special keyboard interaction: For
accessibility, KDE has been asked to provide a way to toggle mouse
modifier keys from the mouse. (Allowing a person with only one hand, or
with ZERO hands, to move his/her 'clicker' device over the the keyboard
slowly.) This would be in Qt, as a very fast, low level operation: Check
if a mouse-based modifier has been set to 'pressed', and if so, set thge
corresponding modifier Bit before passing keyboard events upwards.
More information about the Development
mailing list