working needs a small fix

This commit is contained in:
filipriec
2025-04-07 13:24:22 +02:00
parent e29b576102
commit 37f12ea6f0
7 changed files with 69 additions and 18 deletions

View File

@@ -76,6 +76,7 @@ impl EventHandler {
config,
form_state,
app_state,
auth_state,
&mut self.command_mode,
&mut self.command_input,
&mut self.command_message,
@@ -154,7 +155,7 @@ impl EventHandler {
}
return read_only::handle_read_only_event(
&app_state,
app_state,
key,
config,
form_state,

View File

@@ -19,6 +19,10 @@ impl ModeManager {
return AppMode::Command;
}
if app_state.ui.focus_outside_canvas {
return AppMode::General;
}
if app_state.ui.show_login {
if event_handler.is_edit_mode {
AppMode::Edit