Skip to content

fix: treeland-shortcut-manager-v2: update keybind_mode enum definition#39

Merged
zccrs merged 1 commit intolinuxdeepin:masterfrom
misaka18931:master
Jan 15, 2026
Merged

fix: treeland-shortcut-manager-v2: update keybind_mode enum definition#39
zccrs merged 1 commit intolinuxdeepin:masterfrom
misaka18931:master

Conversation

@misaka18931
Copy link
Copy Markdown
Contributor

Since treeland repeats both pressed and released key events, keybind_mode should be adjusted to allow binding to only non-repeated key release events as well.

Copilot AI review requested due to automatic review settings January 14, 2026 05:26
@deepin-ci-robot
Copy link
Copy Markdown

Hi @misaka18931. Thanks for your PR.

I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the treeland-shortcut-manager-v2 protocol to version 2, refactoring the keybind_mode enum from a simple enumeration to a bitfield-based design. This change enables more flexible keybinding configurations, specifically allowing bindings to non-repeated key release events, addressing limitations in how treeland handles repeated key events.

Changes:

  • Bumped interface version from 1 to 2
  • Converted keybind_mode enum to a bitfield with "release" and "repeat" flags
  • Added since version attributes to all existing protocol elements for proper version tracking
  • Minor whitespace cleanup

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread xml/treeland-shortcut-manager-v2.xml Outdated
Comment thread xml/treeland-shortcut-manager-v2.xml Outdated
Comment thread xml/treeland-shortcut-manager-v2.xml Outdated
Comment thread xml/treeland-shortcut-manager-v2.xml Outdated
misaka18931 added a commit to misaka18931/treeland that referenced this pull request Jan 14, 2026
This PR is coupled with an update in treeland-protocols.
See: linuxdeepin/treeland-protocols#39

Since treeland repeats both pressed and released key events, we should
allow the client to decide whether to only listen to non-repeat key
release events as well, mirroring the behavior when binding to key press
events.

OwO
misaka18931 added a commit to misaka18931/treeland that referenced this pull request Jan 14, 2026
This PR is coupled with an update in treeland-protocols.
See: linuxdeepin/treeland-protocols#39

Since treeland repeats both pressed and released key events, we should
allow the client to decide whether to only listen to non-repeat key
release events as well, mirroring the behavior when binding to key press
events.
Since treeland repeats both pressed and released key events,
keybind_mode should be adjusted to allow binding to only non-repeated
key release events as well.
@deepin-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: misaka18931, zccrs

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@zccrs zccrs merged commit bd14415 into linuxdeepin:master Jan 15, 2026
5 of 7 checks passed
misaka18931 added a commit to misaka18931/treeland that referenced this pull request Jan 15, 2026
This PR is coupled with an update in treeland-protocols.
See: linuxdeepin/treeland-protocols#39

Since treeland repeats both pressed and released key events, we should
allow the client to decide whether to only listen to non-repeat key
release events as well, mirroring the behavior when binding to key press
events.
misaka18931 added a commit to misaka18931/treeland that referenced this pull request Jan 15, 2026
This PR is coupled with an update in treeland-protocols.
See: linuxdeepin/treeland-protocols#39

Since treeland repeats both pressed and released key events, we should
allow the client to decide whether to only listen to non-repeat key
release events as well, mirroring the behavior when binding to key press
events.
zccrs pushed a commit to linuxdeepin/treeland that referenced this pull request Jan 15, 2026
This PR is coupled with an update in treeland-protocols.
See: linuxdeepin/treeland-protocols#39

Since treeland repeats both pressed and released key events, we should
allow the client to decide whether to only listen to non-repeat key
release events as well, mirroring the behavior when binding to key press
events.
SunRain pushed a commit to SunRain/DeckShell that referenced this pull request Mar 3, 2026
This PR is coupled with an update in treeland-protocols.
See: linuxdeepin/treeland-protocols#39

Since treeland repeats both pressed and released key events, we should
allow the client to decide whether to only listen to non-repeat key
release events as well, mirroring the behavior when binding to key press
events.

(cherry picked from commit c26e2472fb069f0552dd3d85adfe86465695e508)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants