aboutsummaryrefslogtreecommitdiffstats
path: root/default-plugins
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2024-07-08 17:36:24 +0200
committerGitHub <noreply@github.com>2024-07-08 17:36:24 +0200
commitdcd3ae28614d947b8ab32016869cc5dda309de85 (patch)
tree0854685e7a42d6c5f81834e725c962010e447f74 /default-plugins
parentdocs(changelog): cursor rendering fix (diff)
downloadsl0ppij-dcd3ae28614d947b8ab32016869cc5dda309de85.tar.gz
sl0ppij-dcd3ae28614d947b8ab32016869cc5dda309de85.tar.xz
sl0ppij-dcd3ae28614d947b8ab32016869cc5dda309de85.zip
fix(terminal): session-manager enter and some more keys (#3484)
Diffstat (limited to 'default-plugins')
-rw-r--r--default-plugins/session-manager/src/main.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/default-plugins/session-manager/src/main.rs b/default-plugins/session-manager/src/main.rs
index 05a33286..9aebb6df 100644
--- a/default-plugins/session-manager/src/main.rs
+++ b/default-plugins/session-manager/src/main.rs
@@ -197,6 +197,10 @@ impl State {
self.new_session_info.handle_key(key);
should_render = true;
},
+ BareKey::Enter if key.has_no_modifiers() => {
+ self.handle_selection();
+ should_render = true;
+ },
BareKey::Char(character) if key.has_no_modifiers() => {
if character == '\n' {
self.handle_selection();
@@ -293,6 +297,10 @@ impl State {
self.sessions.move_selection_up();
should_render = true;
},
+ BareKey::Enter if key.has_no_modifiers() => {
+ self.handle_selection();
+ should_render = true;
+ },
BareKey::Char(character) if key.has_no_modifiers() => {
if character == '\n' {
self.handle_selection();
@@ -391,6 +399,10 @@ impl State {
self.resurrectable_sessions.move_selection_up();
should_render = true;
},
+ BareKey::Enter if key.has_no_modifiers() => {
+ self.handle_selection();
+ should_render = true;
+ },
BareKey::Char(character) if key.has_no_modifiers() => {
if character == '\n' {
self.handle_selection();