working needs a small fix
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user