ComfyUI matches keybindings on KeyboardEvent.key, which follows the active layout (physical Q is 'й' on a Russian layout). Re-dispatch non-ASCII keys as the US-QWERTY key of the same physical position (event.code) in the window capture phase, before the frontend handler runs. Skips text fields, IME composition, named keys and layouts that already report ASCII. Toggle: 'Hotkeys work on any keyboard layout' (on by default). en/ru strings added.
34 lines
1.3 KiB
JavaScript
34 lines
1.3 KiB
JavaScript
export const PromptStatus = Object.freeze({
|
|
PENDING: "pending",
|
|
ACTIVE: "active",
|
|
COMPLETED: "completed",
|
|
CANCELLED: "cancelled",
|
|
ERROR: "error"
|
|
});
|
|
|
|
export const StoreEvents = Object.freeze({
|
|
PROMPT_ADDED: "prompt:added",
|
|
PROMPT_UPDATED: "prompt:updated",
|
|
PROMPT_DELETED: "prompt:deleted",
|
|
PROMPTS_CLEARED: "prompts:cleared",
|
|
ACTIVE_PROMPT_CHANGED: "activePrompt:changed",
|
|
SEARCH_CHANGED: "search:changed",
|
|
SUBMENU_CHANGED: "submenu:changed",
|
|
QUEUE_SYNCED: "queue:synced"
|
|
});
|
|
|
|
export const SettingIds = Object.freeze({
|
|
GRID_COLUMNS_THRESHOLD: "Comfy Sidebar.Grid Columns Threshold",
|
|
SHOW_PENDING_COUNT_ONLY: "Comfy Sidebar.Show Pending Count Only",
|
|
SHOW_WORKING_NODE_NAME: "Comfy Sidebar.Show Working Node Name",
|
|
AUTO_CLEAR_INTERRUPTED: "Comfy Sidebar.Auto Clear Interrupted",
|
|
OVERRIDE_STOCK_HISTORY: "Comfy Sidebar.Hide Junk.Override Stock Job History Tab",
|
|
HIDE_GRAPH_BUTTON: "Comfy Sidebar.Hide Junk.Graph Button",
|
|
CLASSIC_LAYOUT: "Comfy Sidebar.Comfy Layout",
|
|
LATIN_HOTKEYS: "Comfy Sidebar.Latin Hotkeys On Any Layout",
|
|
MAX_HISTORY_ITEMS: "Comfy.Queue.MaxHistoryItems",
|
|
DOCK_QUEUE: "Comfy.Queue.QPOV2",
|
|
SHOW_PROGRESS_BAR: "Comfy.Queue.ShowRunProgressBar",
|
|
TAB_POSITION: "Comfy.Workflow.WorkflowTabsPosition"
|
|
});
|