move out of canvas properly fixed, now working everyhing properly well

This commit is contained in:
filipriec
2025-08-31 10:02:48 +02:00
parent 22926b7266
commit 4e041f36ce
4 changed files with 111 additions and 53 deletions

View File

@@ -35,7 +35,8 @@ pub fn handle_login_event(
if !login_page.focus_outside_canvas {
let last_idx = login_page.editor.data_provider().field_count().saturating_sub(1);
let at_last = login_page.editor.current_field() >= last_idx;
if at_last
if login_page.editor.mode() == CanvasMode::ReadOnly
&& at_last
&& matches!(
(key_code, modifiers),
(KeyCode::Char('j'), KeyModifiers::NONE) | (KeyCode::Down, _)