Added comments to help contributors when adding keyactions.
Browse files
+7 −0 src/keyboard/handlers.rs
| @@ -7,6 +7,13 @@ use x11rb::protocol::xproto::*; | |||
| 7 | use crate::errors::X11Error; | 7 | use crate::errors::X11Error; |
| 8 | use crate::keyboard::keysyms::{self, Keysym, format_keysym}; | 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 | #[derive(Debug, Copy, Clone, Deserialize, PartialEq)] | 17 | #[derive(Debug, Copy, Clone, Deserialize, PartialEq)] |
| 11 | pub enum KeyAction { | 18 | pub enum KeyAction { |
| 12 | Spawn, | 19 | Spawn, |