Don't focus arrowKeys on click or ESC

This commit is contained in:
Emil Lundberg 2017-11-29 16:34:40 +01:00
parent 4ff9042aeb
commit 175a2dc193
No known key found for this signature in database
GPG Key ID: 5B9688125FF0B636

View File

@ -236,7 +236,6 @@ ApplicationWindow {
// outside search bar to remove focus from it.
anchors.fill: parent
onClicked: {
arrowKeys.focus = true
deselectCredential()
}
}
@ -285,8 +284,6 @@ ApplicationWindow {
)
onDoubleClick: {
arrowKeys.forceActiveFocus()
// A double-click should select the credential,
// then generate if needed and copy the code.
selectCredential(modelData)
@ -296,8 +293,6 @@ ApplicationWindow {
onRefresh: refreshDependingOnMode(force)
onSingleClick: {
arrowKeys.forceActiveFocus()
// Left click, select or deselect credential.
if (mouse.button & Qt.LeftButton) {
if (appWindow.isSelected(modelData.credential)) {
@ -333,7 +328,6 @@ ApplicationWindow {
onTextChanged: selectFirstSearchResult()
Keys.onEscapePressed: {
search.text = ""
arrowKeys.focus = true
deselectCredential()
}
Keys.onReturnPressed: generateOrCopy()