[GH-ISSUE #505] [Feature Request]: temporarily disable hotkeys or context based hotkeys #132

Closed
opened 2026-10-31 22:09:10 +00:00 by bsakaguchi · 0 comments
Owner

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?

  • I have searched the existing issues and checked the recent builds/commits

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

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? * I have searched the existing issues and checked the recent builds/commits 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](https://www.notion.so/Issue-1595-Feature-Request-temporarily-disable-hotkeys-or-context-based-hotkeys-15f6d73d36508139a6b4d3bc724a66f8) by [Unito](https://www.unito.io)
bsakaguchi 2026-10-31 22:09:10 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/desktop#132
No description provided.