Box/popups: ignore enter press on disabled buttons

This commit is contained in:
miruka
2020-08-21 05:08:12 -04:00
parent 8fbe59f6eb
commit 2ccb28fa49
8 changed files with 10 additions and 8 deletions

View File

@@ -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 {