Box/popups: ignore enter press on disabled buttons
This commit is contained in:
parent
8fbe59f6eb
commit
2ccb28fa49
1
TODO.md
1
TODO.md
|
@ -4,7 +4,6 @@
|
|||
- server list sorting method / explain what the % number is (stability)
|
||||
- spam alt+shift+a/going to room when starting app on server browser → segfault
|
||||
- login with account already added → infinite spinner in room list
|
||||
- verify onKeyboardAccept/Cancel things respect button enabled state
|
||||
|
||||
- global presence control
|
||||
|
||||
|
|
|
@ -85,8 +85,8 @@ HFlickableColumnPage {
|
|||
}
|
||||
}
|
||||
|
||||
onKeyboardAccept: if (saveButton.enabled) saveButton.clicked()
|
||||
onKeyboardCancel: cancel()
|
||||
onKeyboardAccept: applyChanges()
|
||||
|
||||
HUserAvatar {
|
||||
id: avatar
|
||||
|
|
|
@ -168,7 +168,9 @@ HBox {
|
|||
}
|
||||
}
|
||||
|
||||
onKeyboardAccept: if (serverField.item.apply.enabled) box.connect()
|
||||
onKeyboardAccept:
|
||||
if (serverField.item.apply.enabled) serverField.item.apply.clicked()
|
||||
|
||||
onAccepted: window.saveState(this)
|
||||
|
||||
Timer {
|
||||
|
|
|
@ -64,7 +64,7 @@ HFlickableColumnPage {
|
|||
}
|
||||
}
|
||||
|
||||
onKeyboardAccept: create()
|
||||
onKeyboardAccept: if (applyButton.enabled) applyButton.clicked()
|
||||
onKeyboardCancel: cancel()
|
||||
|
||||
HRoomAvatar {
|
||||
|
|
|
@ -81,7 +81,7 @@ HFlickableColumnPage {
|
|||
}
|
||||
}
|
||||
|
||||
onKeyboardAccept: startChat()
|
||||
onKeyboardAccept: if (applyButton.enabled) applyButton.clicked()
|
||||
onKeyboardCancel: cancel()
|
||||
|
||||
CurrentUserAvatar {
|
||||
|
|
|
@ -70,7 +70,7 @@ HFlickableColumnPage {
|
|||
}
|
||||
}
|
||||
|
||||
onKeyboardAccept: join()
|
||||
onKeyboardAccept: if (joinButton.enabled) joinButton.clicked()
|
||||
onKeyboardCancel: cancel()
|
||||
|
||||
CurrentUserAvatar {
|
||||
|
|
|
@ -63,6 +63,7 @@ HFlickableColumnPage {
|
|||
|
||||
footer: AutoDirectionLayout {
|
||||
ApplyButton {
|
||||
id: applyButton
|
||||
enabled: anyChange
|
||||
loading: saveFuture !== null
|
||||
disableWhileLoading: false
|
||||
|
@ -76,7 +77,7 @@ HFlickableColumnPage {
|
|||
}
|
||||
}
|
||||
|
||||
onKeyboardAccept: save()
|
||||
onKeyboardAccept: if (applyButton.enabled) applyButton.clicked()
|
||||
onKeyboardCancel: cancel()
|
||||
|
||||
HRoomAvatar {
|
||||
|
|
|
@ -73,7 +73,7 @@ HFlickableColumnPopup {
|
|||
}
|
||||
|
||||
onOpened: passwordField.forceActiveFocus()
|
||||
onKeyboardAccept: popup.validate()
|
||||
onKeyboardAccept: if (validateButton.enabled) validateButton.clicked()
|
||||
|
||||
SummaryLabel { id: summary }
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user