From b364528f253102ad131902abbca78991d8ec6938 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Sat, 7 Feb 2026 12:17:09 +0000 Subject: task-001: can activate files screen options with Enter --- schist_desktop_gui/src/config/keys.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'schist_desktop_gui/src/config') diff --git a/schist_desktop_gui/src/config/keys.rs b/schist_desktop_gui/src/config/keys.rs index fef2dc3..d72fb12 100644 --- a/schist_desktop_gui/src/config/keys.rs +++ b/schist_desktop_gui/src/config/keys.rs @@ -7,6 +7,7 @@ use crate::{ #[derive(Debug, Clone)] pub struct Keyboard { + pub activate: KeyBind, pub goto_next_item: KeyBind, pub goto_prev_item: KeyBind, pub goto_next_view: KeyBind, @@ -21,6 +22,7 @@ pub struct Keyboard { impl Default for Keyboard { fn default() -> Self { Self { + activate: KeyBind::activate(), goto_next_item: KeyBind::goto_next_item(), goto_prev_item: KeyBind::goto_prev_item(), goto_next_view: KeyBind::goto_next_view(), @@ -37,6 +39,7 @@ impl Default for Keyboard { impl Keyboard { pub fn shortcuts(&self) -> Vec { vec![ + shortcut(self.activate.clone(), Command::Activate), shortcut(self.goto_next_item.clone(), Command::GotoNextItem), shortcut(self.goto_prev_item.clone(), Command::GotoPrevItem), shortcut(self.goto_next_view.clone(), Command::GotoNextView), -- cgit v1.2.3