[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 96431] Ability use mouse buttons for shortcuts
From:       Rick Stockton <rickstockton () reno-computerhelp ! com>
Date:       2012-08-14 18:16:05
Message-ID: bug-96431-17878-LQSXPVz5wA () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=96431

--- Comment #37 from Rick Stockton <rickstockton@reno-computerhelp.com> ---
Status update for you interested bug watchers:
I am now working on "mouse shortcuts" for Qt 5.1. (The PREREQUISITE for this
enhancement). If I accomplish everything I want, then a "MouseShortcutSequence"
will be any unique combination of the following Mouse Event characteristics:

1. Qt::MouseButton "button" (the button being released, pressed, or
double-clicked). I don't know of a current mouse device with more than 15
"buttons", plus the 4 wheel scroll directions (which don't count as buttons in
Qt.) And, in various OS choices you might be limited to fewer buttons.
(Blackberry; and IIRC, Apple OS-X; definitely less on Windows.)

2. Type of button event (Release, Press, or DoubleClick): I'm hoping to allow
Shortcuts and Actions based on "Press" Events to support the "Repeatable"
property. You won't want to have shortcuts for both "ButtonPress" and
"ButtonRelease", unless you want to do both things. (In Qt a "click", which
drives nearly all of the Mouse-Based UI events, corresponds to the hardware
"ButtonRelease" -- not the "Press".) If I can't make "repeatable" work, then I
won't support 'Press' events - just 'Release' and 'DoubleClick'.

3. Qt::Keyboard Modifiers (Useful if you've got two hands). NO OTHER KEYS, I'm
only going to support the Modifiers. You can none at all, just one, or any
combination, e.g. Qt::ALT+Qt::SHIFT. 

4. Qt::MouseButtons "Held Buttons": As withthe  keyboard modifiers, you can
hold any combination combination of ButtonLeft, ButtonRight, ButtonMiddle (or
none of them), as long as the main "button" is a different button. These 3
buttons can be "mouse modifiers" for events on other buttons.
- - - - -
This allows for a lot of different combinations. For example, here's just a few
of the shortcut "Mouse Sequences" which could define with just button =
Qt::ForwardButton (i.e., an everyday Back+Forward sidebutton mouse, which is
fully supported on all platforms):

ForwardButton clickled with LeftButton held down;
ForwardButton clickled with RightButton held down;
ForwardButton clicked with Qt::ALT held on the keyboard;
ForwardButton clicked with Qt::SHIFT held on the keyboard;
ForwardButton clicked with Qt::SHIFT *and* Qt::ALT held on the keyboard;
ForwardButton clicked with Qt::SHIFT held on the keyboard, and LeftButton held
on the mouse;
+ All of those with Forwardbutton doubleclicked, instead of single-clicked;
+ All of those which used Qt::SHIFT, (including those 'doubleclick'
combinations) but replacing Qt::SHIFT with Qt::CTRL instead .....
+ All of those, but with Qt::MiddleButton held down;
+ All of those, but with BOTH Qt::LeftButton and Qt::RightButton held down;
+ many, many other combinations.

A "high-end" mouse, like my Logitech G700, is capable of defining about 40
"comfortable" one-handed sequences for me, because I find it difficult to hold
MiddleButton. (And because some of the other combinations would stretch my
thumb too much.) But I'm lucky to be two-handed, so every one of those can be
modified to add a combination of QT::SHIFT || QT::ALT || QT::CTRL (6 possible
combinations, just with these 3 modifiers.) That provides the possiblity of
about 240 comfortable combinations, on just ONE of my seven "extra" buttons. My
own number of possible "Mouse Shortcut Sequences" numbers, all reasonably
comfortable for me to execute, exceeds 1400.

With a Razr "Naga", I'd have lots more (it has 12 "extra" buttons, instead of
7). With a high-end mouse, on any flavor of Linux, QNX, or Apple, you're
probably going to run out of human memory capability (what the heck was that
shortcut???) long before you run out of usable mouse + keyboard modifer
combinations.

Right now, it's many months before any possible Release of Qt 5.1. But I've got
a plan, and I'm working on it!

-- 
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic