Disable Tap to click while typing on a PK
This change will disable tap to click on touchpad while user is typing
on keyboard. Any move events or new taps will reenable tap to click.
Test: atest GestureConverterTest && atest inputflinger_tests and manual
testing
Bug: 275616121
Change-Id: I5b7d984e5cce7f65c16ec19a0b8373c95e75f30b
diff --git a/services/inputflinger/reader/mapper/KeyboardInputMapper.h b/services/inputflinger/reader/mapper/KeyboardInputMapper.h
index 361abe0..96044eb 100644
--- a/services/inputflinger/reader/mapper/KeyboardInputMapper.h
+++ b/services/inputflinger/reader/mapper/KeyboardInputMapper.h
@@ -104,7 +104,7 @@
void updateLedStateForModifier(LedState& ledState, int32_t led, int32_t modifier, bool reset);
std::optional<DisplayViewport> findViewport(const InputReaderConfiguration& readerConfig);
[[nodiscard]] std::list<NotifyArgs> cancelAllDownKeys(nsecs_t when);
- void tryHideCursorOnKeyDown();
+ void onKeyDownProcessed();
};
} // namespace android