mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-21 21:09:42 +00:00
add `ctrl + c
` exiting
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
This commit is contained in:
parent
596467f155
commit
aa9850766b
|
@ -418,6 +418,12 @@ impl AppState {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if matches!(self.focus, Focus::ConfirmationPrompt(_))
|
||||||
|
&& (key.modifiers.contains(KeyModifiers::CONTROL) && key.code == KeyCode::Char('c'))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// If UI is not drawable returning true will mark as the key handled
|
// If UI is not drawable returning true will mark as the key handled
|
||||||
if !self.drawable {
|
if !self.drawable {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user