feat: Properly recognize the current input method

This commit is contained in:
PartyDonut 2025-10-23 15:58:18 +02:00
parent 561351dd09
commit 8b9bc04380
7 changed files with 154 additions and 36 deletions

View file

@ -146,6 +146,8 @@ class FocusButtonState extends State<FocusButton> {
child: Focus(
focusNode: focusNode,
autofocus: widget.autoFocus,
canRequestFocus: widget.onTap != null || widget.onLongPress != null || widget.onSecondaryTapDown != null,
skipTraversal: widget.onTap == null && widget.onLongPress == null && widget.onSecondaryTapDown != null,
onFocusChange: (value) {
widget.onFocusChanged?.call(value);
if (value) {