mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Fix various keyboard focus issues
- Make write confirmation popup modal - Force focus on the write confirmation popup when it opens - Force focus on the error popup when it opens - When the hw select popup opens, force focus on the ListView instead of on the currentItem, because the latter doesn't work when the list is empty. - On embedded, when the settings popup closes, force focus back to the usecustomisation dialog
This commit is contained in:
parent
de906cd2ed
commit
60e5e2a4b5
2 changed files with 31 additions and 2 deletions
10
src/main.qml
10
src/main.qml
|
@ -151,7 +151,7 @@ ApplicationWindow {
|
|||
Layout.fillWidth: true
|
||||
onClicked: {
|
||||
hwpopup.open()
|
||||
hwlist.currentItem.forceActiveFocus()
|
||||
hwlist.forceActiveFocus()
|
||||
}
|
||||
Accessible.ignored: ospopup.visible || dstpopup.visible || hwpopup.visible
|
||||
Accessible.description: qsTr("Select this button to choose your target Raspberry Pi")
|
||||
|
@ -1122,6 +1122,9 @@ ApplicationWindow {
|
|||
|
||||
MsgPopup {
|
||||
id: msgpopup
|
||||
onOpened: {
|
||||
forceActiveFocus()
|
||||
}
|
||||
}
|
||||
|
||||
MsgPopup {
|
||||
|
@ -1142,6 +1145,7 @@ ApplicationWindow {
|
|||
yesButton: true
|
||||
noButton: true
|
||||
title: qsTr("Warning")
|
||||
modal: true
|
||||
onYes: {
|
||||
langbarRect.visible = false
|
||||
writebutton.visible = false
|
||||
|
@ -1166,6 +1170,10 @@ ApplicationWindow {
|
|||
text = qsTr("All existing data on '%1' will be erased.<br>Are you sure you want to continue?").arg(dstbutton.text)
|
||||
openPopup()
|
||||
}
|
||||
|
||||
onOpened: {
|
||||
forceActiveFocus()
|
||||
}
|
||||
}
|
||||
|
||||
MsgPopup {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue