summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFabian Henneke <FabianHenneke@users.noreply.github.com>2020-03-27 10:06:16 +0100
committerGitHub <noreply@github.com>2020-03-27 10:06:16 +0100
commit453cf58b385b6e6d27d7d827c793cbb2a6dbbf3a (patch)
treec7dab4e533b697d37cf4858638571e21d6e77fc5 /app
parent94b0b64501da5be8bdbefb237a3193e15ed1b456 (diff)
Let IME button dismiss keyboard during search (#673)
The IME search button is currently without function while the PasswordStore SearchView is focused, which means that the keyboard hides part of the search result until back is pressed. This commit makes the IME button function like the back key in this situation, dismissing the keyboard. Co-authored-by: Harsh Shandilya <msfjarvis@gmail.com>
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt
index 72fbee8d..7495cff1 100644
--- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt
+++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt
@@ -167,6 +167,7 @@ class PasswordStore : AppCompatActivity() {
searchView.setOnQueryTextListener(
object : OnQueryTextListener {
override fun onQueryTextSubmit(s: String): Boolean {
+ searchView.clearFocus()
return true
}