git.lucas.co / cce-display-manager
login greeter
git clone https://git.lucas.co/cce-display-manager.git

commit706d679f89044fe2d1907f5234bc040e9a7426a5
parent9eb26dade7
authorLucas Galante <[email protected]>
date2026-06-02 13:25
Update system configuration and interface modules

 src/main.rs | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs
index 2632893..db8014c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1182,6 +1182,8 @@ impl AppState {
             _ => {
                 if let Some(ref text) = event.utf8 {
                     Key::Character(text.clone())
+                } else if let Some(ch) = event.keysym.key_char() {
+                    Key::Character(ch.to_string())
                 } else {
                     return;
                 }
@@ -1334,7 +1336,11 @@ impl KeyboardHandler for AppState {
         _keyboard: &wl_keyboard::WlKeyboard,
         _surface: &wl_surface::WlSurface,
         _serial: u32,
-    ) {}
+    ) {
+        self.pressed_key = None;
+        self.ctrl_pressed = false;
+        self.shift_pressed = false;
+    }
 
     fn press_key(
         &mut self,