Compare commits
1 changed files with 0 additions and 12 deletions
|
|
@ -39,7 +39,6 @@ enum Message {
|
||||||
ChangeQuery(String),
|
ChangeQuery(String),
|
||||||
|
|
||||||
Copy,
|
Copy,
|
||||||
Edit,
|
|
||||||
|
|
||||||
FocusNext,
|
FocusNext,
|
||||||
FocusPrevious,
|
FocusPrevious,
|
||||||
|
|
@ -66,8 +65,6 @@ struct State {
|
||||||
selected_field: db::BasicField,
|
selected_field: db::BasicField,
|
||||||
query: String,
|
query: String,
|
||||||
|
|
||||||
editing_entry: Option<keepass::db::EntryId>,
|
|
||||||
|
|
||||||
status: Cow<'static, str>,
|
status: Cow<'static, str>,
|
||||||
error: Cow<'static, str>,
|
error: Cow<'static, str>,
|
||||||
}
|
}
|
||||||
|
|
@ -185,13 +182,6 @@ impl State {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Message::Edit => {
|
|
||||||
self.editing_entry = self
|
|
||||||
.db_view
|
|
||||||
.get(self.selected_entry)
|
|
||||||
.map(|entry| entry.id());
|
|
||||||
}
|
|
||||||
|
|
||||||
Message::FocusNext => return widget::operation::focus_next(),
|
Message::FocusNext => return widget::operation::focus_next(),
|
||||||
Message::FocusPrevious => return widget::operation::focus_previous(),
|
Message::FocusPrevious => return widget::operation::focus_previous(),
|
||||||
Message::FocusSearch => return widget::operation::focus("search"),
|
Message::FocusSearch => return widget::operation::focus("search"),
|
||||||
|
|
@ -414,8 +404,6 @@ impl State {
|
||||||
|
|
||||||
Key::Character("y" | "c") if db_loaded => Some(Message::Copy),
|
Key::Character("y" | "c") if db_loaded => Some(Message::Copy),
|
||||||
|
|
||||||
Key::Character("e") if db_loaded => Some(Message::Edit),
|
|
||||||
|
|
||||||
Key::Character("q") => Some(Message::Quit),
|
Key::Character("q") => Some(Message::Quit),
|
||||||
|
|
||||||
// ignore unused keys
|
// ignore unused keys
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue