KDE 4.3 KHotkeys Gesture Support

With kde 4.2 my first big kde contribution went live. The khotkeys redesign. It was unfinished and users complained. Most complains - or should i say the loudest? - were about the incomplete mouse gesture support. The lament didn't stop. Then Frank Roscher came around and offered a tool name easystroke as a replacement for khotkeys and the ease was restored. Partially.

When i got the khotkeys gesture support working again in trunk the same guy sent me a patch implementing easystrokes gestures algorithm in khotkeys. Nice surprise. Apparently easystrokes author not only offers it's software for free ... no he also provides a detailed explanation of the algorithm used. That's the spirit! Since easystrokes algorithm is superior to khotkeys old one it was a no brainer to accept the patch. He even added an migration from the old algorithm to the new.

So with 4.3 the mouse gesture support in kde is back. But the documentation for khotkeys is miserable. So it's not easy to guess how mouse gestures work. Perhaps someone out there is willing to write some documentation. I'm bad at doing that. As you will shortly notice.

Groups can have conditions. A condition is something along the line "There is a window named xyz", "The window with title xyz is active". No condition means always true. Have a look at the "Konqueror Gestures" for an example. All gestures in that group will only work if the condition is met. And the condition is that a konqueror window is active. What a surprise!

To start a gesture you must press a mouse button. Click on Settings to configure which. When pressing the mouse button khotkeys follows your moves. After you release the mouse button khotkeys will try to match your gesture against its database. If a match is found the associated action is executed. Again have a look at the Konqueror examples which work perfectly. For me. In case of troubles open a bug.

Mike

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I for one I'd love to have

I for one I'd love to have support for multi-touch gestures, for hardware that supports it. They're rather useful on my macbook.

Thanks for this! But I have

Thanks for this! But I have to ask if there was any progress on multi-key global shortcuts? Regards!

No progress yet

No. And don't expect any progress in the next year or so. I'm doing that in my spare time and have to choose carefully what to work on. And there are much more urgent problems left that require my attention.

I'm for example currently fixing some qt bugs that are responsible for some of our shortcut problems.

Hi Mike, thanks for the great

Hi Mike, thanks for the great work bringing mouse gestures back for kde 4. How hard would it be to add rocker gestures (like opera has and firefox has with extensions)? I love rocker gestures, and having them for konqueror would be awesome!

What's more?

Will KHotkeys also support the remapping of mouse-buttons? And a visible mouse-track like easystroke?

Nothing

Nothing more unless someone throws some money add me or i get some unexpected contributions. Not enough time.

Same for the rocker gestures the poster above would like to have. Sorry have a job to do and a live to live.

great news !

I'm looking forward to using mouse gestures all over the place in KDE (Dolphin, etc) ; they are so useful to navigate quickly !

I am bloody excited by this.

I am bloody excited by this. When switching to linux in 2006, the only thing I missed was the power of StrokeIt's- KDE's diagonally-challenged gesture support couldn't hold a candle to it. My gesture setup made me 3 times more efficient when working with the desktop...I really hope this will allow me to get that setup back. Great work everyone.

Hi Mike, thanks for your

Hi Mike, thanks for your efforts. I hope bug reports like http://bugs.kde.org/show_bug.cgi?id=189761 will be obsolete in the future then? If not, please disable Konqueror Gestures by default. Thanks a lot, Frank

Not yet

But i hope to fix that bug before the release of 4.3. I had to learn more about x11 than i ever wanted to know and i still need to learn some stuff to fix that bug.

I hope Lubos can lend a hand.

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.