mirror of
https://github.com/Comfy-Org/desktop.git
synced 2026-11-04 23:47:43 +00:00
[GH-ISSUE #505] [Feature Request]: temporarily disable hotkeys or context based hotkeys #132
Labels
No labels
area: desktop-app
Bounty
bug
bug-cop:answered
bug-cop:response-received
component: installer
component: preload
custom node
dependencies
Design
documentation
duplicate
enhancement
expected
frontend
good first issue
installation
Low-Priority
performance
Planned
platform: cross-platform
platform: windows
Potential Bug
Potential Bug
pull-request
question
refactor
Release
stale
User Support
V1
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/desktop#132
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sync-by-unito[bot] on GitHub (Dec 17, 2024).
Original GitHub issue: https://github.com/Comfy-Org/desktop/issues/505
Originally assigned to: @huchenlei on GitHub.
Is there an existing issue for this?
What would your feature do ?A developer api to temporarily disable hotkeys.
When a user opens the Mask Editor and presses Ctrl+Z, the undo operation should affect the Mask Editor rather than triggering ComfyUI's global undo functionality.
A better alternative would be a developer API to create hotkeys that only affect a certain context. Context could be enabled and disabled.
Proposed workflow// Usage example 1
app.extensionManager.disableKeybindings('commandId1');
app.extensionManager.enableKeybindings(['commandId1', 'commandId2']);
//Usage example 2
//create context and keybinding via app.registerExtension
app.extensionManager.enableHotkeyContext('contextId')
app.extensionManager.disableHotkeyContext('contextId')
Additional informationNo response
┆Issue is synchronized with this Notion page by Unito