tony / oxwm

Added comments to help contributors when adding keyactions. Browse files
tonybtw committed 2025-12-15 parent 35f6061 commit 46596a9c4662fd19b4b49cfd9bed449c10d044d4
Showing 1 changed file with 7 additions and 0 deletions. UnifiedSplit
+7 −0 src/keyboard/handlers.rs
@@ -7,6 +7,13 @@ use x11rb::protocol::xproto::*;
7 7 use crate::errors::X11Error;
8 8 use crate::keyboard::keysyms::{self, Keysym, format_keysym};
9 9
10 +/// When adding a new action, update:
11 +/// 1. Add variant here
12 +/// 2. lua_api.rs: string_to_action()
13 +/// 3. lua_api.rs: register_*_module()
14 +/// 4. window_manager.rs: handle_key_action()
15 +/// 5. (optionally) overlay/keybind.rs: action_description()
16 +/// 6. templates/oxwm.lua
10 17 #[derive(Debug, Copy, Clone, Deserialize, PartialEq)]
11 18 pub enum KeyAction {
12 19 Spawn,