opt viewpoint widget

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-18 13:19:45 +08:00
parent 1824c83cd0
commit 59bbe51702
2 changed files with 7 additions and 14 deletions

View File

@@ -26,7 +26,7 @@ class PlayerFocus extends StatelessWidget {
final CommonIntroController? introController;
final VoidCallback onSendDanmaku;
static bool _showHandled(KeyEvent event) {
static bool _shouldHandled(KeyEvent event) {
return event.logicalKey == LogicalKeyboardKey.tab ||
event.logicalKey == LogicalKeyboardKey.arrowLeft ||
event.logicalKey == LogicalKeyboardKey.arrowRight ||
@@ -40,7 +40,7 @@ class PlayerFocus extends StatelessWidget {
autofocus: true,
onKeyEvent: (node, event) {
final handled = _handleKey(event);
if (handled || _showHandled(event)) {
if (handled || _shouldHandled(event)) {
return KeyEventResult.handled;
}
return KeyEventResult.ignored;