summaryrefslogtreecommitdiffstats
path: root/src/file_browser.rs
diff options
context:
space:
mode:
authorrabite <rabite@posteo.de>2019-04-27 15:19:10 +0200
committerrabite <rabite@posteo.de>2019-04-27 15:23:38 +0200
commit9729a2482e1e4d37bda9af2bcf09aeb6aefbc1d7 (patch)
tree7d843004625c99dedbb510f7c2cafad8524a73ba /src/file_browser.rs
parent392e6c0128f1669d8e689d097ef8a29d00d00e08 (diff)
move quit function from Widget to FileBrowser
Diffstat (limited to 'src/file_browser.rs')
-rw-r--r--src/file_browser.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/file_browser.rs b/src/file_browser.rs
index 5fd84ac..408b0c7 100644
--- a/src/file_browser.rs
+++ b/src/file_browser.rs
@@ -1032,6 +1032,7 @@ impl Widget for FileBrowser {
fn on_key(&mut self, key: Key) -> HResult<()> {
match key {
Key::Char('/') => { self.turbo_cd()?; },
+ Key::Char('q') => HError::quit()?,
Key::Char('Q') => { self.quit_with_dir()?; },
Key::Right | Key::Char('l') => { self.enter_dir()?; },
Key::Char('L') => { self.open_bg()?; },