mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-04-05 03:37:04 +01:00
fix enter key running on preview
This commit is contained in:
parent
42be40f65d
commit
936e46becc
@ -272,7 +272,14 @@ impl CustomList {
|
|||||||
self.toggle_preview_window(state);
|
self.toggle_preview_window(state);
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
KeyCode::Enter => self.handle_enter(),
|
|
||||||
|
KeyCode::Enter => {
|
||||||
|
if self.preview_window_state.is_none() {
|
||||||
|
self.handle_enter()
|
||||||
|
} else {
|
||||||
|
None
|
||||||
|
}
|
||||||
|
}
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user