summaryrefslogtreecommitdiff
path: root/schist_desktop_gui/src/config/keys.rs
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-02-07 12:17:09 +0000
committerJoe Carstairs <me@joeac.net>2026-02-07 12:17:09 +0000
commitb364528f253102ad131902abbca78991d8ec6938 (patch)
treea33aafa7fabd29d0e549211128d1eae1fb498675 /schist_desktop_gui/src/config/keys.rs
parent1664e741ad35ce52a01788c34029f0b2ea477e32 (diff)
task-001: can activate files screen options with Enter
Diffstat (limited to 'schist_desktop_gui/src/config/keys.rs')
-rw-r--r--schist_desktop_gui/src/config/keys.rs3
1 files changed, 3 insertions, 0 deletions
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<Shortcut> {
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),