summaryrefslogtreecommitdiffstats
path: root/src/app/impl_view.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/impl_view.rs')
-rw-r--r--src/app/impl_view.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app/impl_view.rs b/src/app/impl_view.rs
index c369d8f..c0f1eb4 100644
--- a/src/app/impl_view.rs
+++ b/src/app/impl_view.rs
@@ -6,7 +6,7 @@ use std::path::PathBuf;
use cursive::direction::{Absolute, Direction};
use cursive::event::{Event, EventResult, Key};
use cursive::theme::Color;
-use cursive::view::View;
+use cursive::view::{CannotFocus, View};
use cursive::{Printer, Vec2};
use notify::DebouncedEvent;
@@ -53,8 +53,8 @@ impl View for App {
Vec2::new(width, height + 2)
}
- fn take_focus(&mut self, _: Direction) -> bool {
- false
+ fn take_focus(&mut self, _: Direction) -> Result<EventResult, CannotFocus> {
+ Err(CannotFocus)
}
fn on_event(&mut self, e: Event) -> EventResult {