mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
shorten TuiIn, TuiOut
This commit is contained in:
parent
ca16a91015
commit
21741ebc52
20 changed files with 77 additions and 75 deletions
|
|
@ -35,7 +35,7 @@ impl Command<PoolModel> for PhraseRenameCommand {
|
|||
}
|
||||
|
||||
impl InputToCommand<Tui, PoolModel> for PhraseRenameCommand {
|
||||
fn input_to_command (state: &PoolModel, from: &TuiInput) -> Option<Self> {
|
||||
fn input_to_command (state: &PoolModel, from: &TuiIn) -> Option<Self> {
|
||||
use KeyCode::{Char, Backspace, Enter, Esc};
|
||||
if let Some(PoolMode::Rename(_, ref old_name)) = state.phrases_mode() {
|
||||
Some(match from.event() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue