Skip to content

Commit

Permalink
Only switch to cursor when using keyboard if item scan
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenMcGirr committed Mar 7, 2024
1 parent cdccda7 commit b48e2ae
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ object KeyboardInfo {
keyboardHeight = rect.height()

// Go to cursor as keyboard keys don't report AccessibilityNodeInfo
ScanReceiver.state = ScanReceiver.ReceiverState.CURSOR
if (ScanReceiver.state == ScanReceiver.ReceiverState.ITEM_SCAN) {
ScanReceiver.state = ScanReceiver.ReceiverState.CURSOR
}
} else {
isKeyboardVisible = false
keyboardHeight = 0
Expand Down

0 comments on commit b48e2ae

Please sign in to comment.