Module hotkeys

Source
Expand description

Keyboard shortcuts: a fixed list of actions, default bindings, user overrides (stored in Settings), and per-frame polling. The bare letters V / T / S / D / M belong to the tool strip (ui::tools), which consumes them before this table is polled, so actions that used them sit on Shift+. Mouse modifiers (Ctrl+Scroll zoom, Alt+Scroll track height, Shift+Scroll pan) are fixed and not part of this table.

MacrosΒ§

actions πŸ”’

StructsΒ§

Hotkeys

EnumsΒ§

Action

ConstantsΒ§

ALT πŸ”’
CTRL πŸ”’
CTRL_ALT πŸ”’
CTRL_SHIFT πŸ”’
NONE πŸ”’
SHIFT πŸ”’

FunctionsΒ§

canon πŸ”’
Canonical form so Ctrl and Command (egui sets both on Windows) compare equal.
is_late πŸ”’
Actions the curve and node editors also claim while the pointer is over them, so the timeline only gets them if no pane wanted them. Delete is here for the same reason the clipboard keys are: the early pass runs BEFORE any pane is drawn, so a global Delete would eat the key and remove the selected CLIPS while the user was deleting keyframes or nodes.
restore_clipboard_keys πŸ”’
egui-winit swallows the clipboard keys: Ctrl+C / Ctrl+X / Ctrl+V (and Ctrl+Alt+C/V, Shift+Delete, Ctrl+Insert) arrive as Event::Copy / Cut / Paste with the key event dropped, so no shortcut on those keys can ever match. Put the key events back. The clipboard event no longer says which key produced it, so the modifiers decide β€” with Shift down a Cut is Windows’ Shift+Delete (Ctrl+Shift+X is nobody’s shortcut). Callers skip this while a text field has focus, so text copy/paste is untouched.
same πŸ”’
sc πŸ”’