From 8432df8bd8368b7b3d502e025fdae7d2cad06767 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Fri, 6 Mar 2020 09:36:04 +0100 Subject: android: Make keyboard in search bar show "search button" ... instead of "Enter" key that inserted a newline when clicked. Instead, start a search in downward direction when the search button is clicked, which makes using the search feature more intuitive. I quickly tested with both, Writer and Calc. Change-Id: Iffc9f6115e558721b34d8fb4ae2ed4a36c4a7aa5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90092 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- android/source/res/layout/toolbar_bottom.xml | 3 ++- .../src/java/org/libreoffice/SearchController.java | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) (limited to 'android') diff --git a/android/source/res/layout/toolbar_bottom.xml b/android/source/res/layout/toolbar_bottom.xml index 7688dd4f01fc..f4b3f3c5f8cc 100644 --- a/android/source/res/layout/toolbar_bottom.xml +++ b/android/source/res/layout/toolbar_bottom.xml @@ -435,7 +435,8 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="0.2" - android:inputType="" /> + android:imeOptions="actionSearch" + android:inputType="text" />