summaryrefslogtreecommitdiffstats
path: root/src/app/handler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/handler.rs')
-rw-r--r--src/app/handler.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app/handler.rs b/src/app/handler.rs
index fa1cc18..7ad53c2 100644
--- a/src/app/handler.rs
+++ b/src/app/handler.rs
@@ -310,7 +310,9 @@ fn handle_key_event(key_event: KeyEvent, app: &mut App) -> Command {
}
}
Key::Char('o') | Key::Char(' ') | Key::Enter => {
- if app.state.show_options {
+ if let Some(select_type) = app.state.select {
+ Command::Copy(select_type)
+ } else if app.state.show_options {
app.options.selected().cloned().unwrap_or(Command::None)
} else if !app.keys_table.items.is_empty() {
Command::ShowOptions