[Bug]: TapKeyHoldingModifiers on HapticPanel releases the modifier immediately, so Cmd+Tab switcher flashes and closes

Open
#2,730 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
desktop

Research direction

Start by reading the handling for TapKeyHoldingModifiers and the HoldShortcut press lifecycle described in related issue #1098. Then trace how HapticPanel events arrive for Bluetooth LE devices and whether they include distinct press and release events. Done means Cmd+Tab keeps the macOS app switcher open while the panel is held and releasing the panel commits the choice.

Written by the indexing model from the issue text.

Description

needs: triage type: bug
Pre-flight checklist
  • I searched existing issues and this is not a duplicate.
  • I am on the latest release or a recent master build.
  • I quit Logi Options+ before running OpenLogi (the two apps fight over HID++ access and only one can own a receiver at a time).
Which part of OpenLogi?

GUI (desktop app)

OpenLogi version

OpenLogi 0.9.0

Operating system

macOS

OS version & architecture

macOS 27.2.1

Device model

MX Master 4, Bluetooth LE

How is the device connected?

Bluetooth (direct, no receiver)

Affected area(s)
  • Device discovery / detection
  • Button remapping
  • DPI control
  • SmartShift
  • Per-application profiles
  • Battery status
  • Settings / configuration (TOML)
  • Auto-update
  • Menu bar / tray
  • Other
What happened?

Binding HapticPanel = { TapKeyHoldingModifiers = "Cmd+Tab" } on an MX Master 4 (Bluetooth LE) does not keep Cmd held while the haptic panel is pressed. The macOS app switcher flashes and closes immediately, exactly like CustomShortcut = "Cmd+Tab".

Expected: same behaviour #1098 describes for buttons. Cmd stays held for the duration of the panel press, Tab is tapped once, the switcher stays open, and releasing the panel commits the choice.

My guess (not verified in the code): #1098 says this action reuses the HoldShortcut press lifecycle (try_hidpp_button_down / try_hidpp_button_up), but the haptic panel press seems to arrive as a one-shot click/force event with no separate release, so the hold lifetime collapses to zero. With Mac Mouse Fix, the same haptic panel can keep the app switcher open while pressed, so the hardware seems able to report press and release separately.

If the panel truly can't report a release, an alternative would be to keep the modifiers held until the next click or a timeout.

Related: #1098, #1894

Steps to reproduce
  1. Connect an MX Master 4 over Bluetooth LE.
  2. In config.toml set HapticPanel = { TapKeyHoldingModifiers = "Cmd+Tab" } (or pick "Hold modifiers, tap key" → Cmd+Tab for Haptic Panel in the GUI) and restart OpenLogi.
  3. Press and hold the haptic panel.
  4. The app switcher appears for a split second and closes; it does not stay open while the panel is held.
Diagnostics report
(inventory read from the running agent)
MX Master 4 (—, vid=046d pid=b042)
  └─ slot 255 ● MX Master 4 (mouse, wpid=?, battery=50% good (discharging))
          model_ids=[b042,0000,0000] ext=01 serial=<redacted> unit_id=<redacted> transports=btle
openlogi list output
(inventory read from the running agent)
MX Master 4 (—, vid=046d pid=b042)
  └─ slot 255 ● MX Master 4 (mouse, wpid=?, battery=50% good (discharging))
          model_ids=[b042,0000,0000] ext=01 serial=<redacted> unit_id=<redacted> transports=btle
Logs

macOS permissions (if applicable)
  • OpenLogi has Accessibility permission (needed to remap buttons via the event tap).
  • OpenLogi has Input Monitoring permission (needed for Bluetooth-direct devices and capture).
Dominant language
Rust
Stars
26.4k
Forks
1k
Avg merge
3d 9h
Merged PRs (30d)
103

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from AprilNEA/OpenLogi

All issues in AprilNEA/OpenLogi

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.