hydrusnetwork / hydrusnetwork/hydrus

Native gesture support (e.g. macOS trackpad pinch) in shortcuts mouse events

Open
#709 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request system:user-interface
Dominant language
Python
Stars
3.2k
Forks
207
PR merge metrics
No merged PRs in 30d

Description

I'd like it if shortcuts could recognize native gestures from OSes that support them. For me I'm only concerned about macOS but I know that Windows has some gestures too, so this feature is not macOS specific. I have no experience working with Qt but I did find documentation for the QNativeGestureEvent class that specifically mentions some macOS touch sequences such as the pinch zoom. You know, this thing:

pinch zoom gesture diagram

An example of how one might use these gestures:

  • Pinch gesture = zoom in/out.
  • "Double tap" smart zoom gesture = switch between 100% and canvas fit.
  • Rotate gesture = move animation frames forward/backward.

Windows users, please chime in with what your OS supports.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Qt QNativeGestureEvent documentation linked in the issue and locate the shortcuts mouse-event handling. Determine which native gestures macOS and Windows expose and how the existing shortcut system receives mouse input. Done means the requested pinch, smart-zoom, and rotate gestures can be recognized and mapped to shortcut actions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.