mirror of
https://github.com/zaphar/sheetsui.git
synced 2025-07-22 13:00:22 -04:00
fix: add hotkey for help in navigation mode again
This commit is contained in:
parent
79a119ea93
commit
8dd4dd9e89
@ -228,7 +228,7 @@ impl<'ws> Workspace<'ws> {
|
||||
fn handle_edit_input(&mut self, key: event::KeyEvent) -> Result<Option<ExitCode>> {
|
||||
if key.kind == KeyEventKind::Press {
|
||||
match key.code {
|
||||
KeyCode::Char('h') if key.modifiers == KeyModifiers::CONTROL => {
|
||||
KeyCode::Char('?') => {
|
||||
self.enter_dialog_mode(self.render_help_text());
|
||||
}
|
||||
KeyCode::Esc | KeyCode::Enter => self.exit_edit_mode()?,
|
||||
@ -305,6 +305,9 @@ impl<'ws> Workspace<'ws> {
|
||||
KeyCode::Char('s') if key.modifiers == KeyModifiers::CONTROL => {
|
||||
self.save_file()?;
|
||||
}
|
||||
KeyCode::Char('?') => {
|
||||
self.enter_dialog_mode(self.render_help_text());
|
||||
}
|
||||
KeyCode::Char('s')
|
||||
if key.modifiers == KeyModifiers::HYPER
|
||||
|| key.modifiers == KeyModifiers::SUPER =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user