fix: one-shot select key activation in focus helpers

This commit is contained in:
edde746
2026-04-12 10:00:26 +02:00
parent a948d82c24
commit 7c3cee692c
3 changed files with 25 additions and 14 deletions
+2 -6
View File
@@ -366,12 +366,8 @@ class _FocusableWrapperState extends State<FocusableWrapper> with SingleTickerPr
_isSelectKeyDown = false;
return KeyEventResult.handled;
}
} else {
// Simple select handling without long-press
if (event is KeyDownEvent) {
widget.onSelect?.call();
return KeyEventResult.handled;
}
} else if (widget.onSelect != null) {
return handleOneShotSelect(event, widget.onSelect!);
}
}