Make fullscreen images focused when they're opened
Otherwise keyboard shortcuts don't work until you tap the image, which makes no sense. BUG: 484322
This commit is contained in:
@@ -104,6 +104,8 @@ Components.AlbumMaximizeComponent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onOpened: forceActiveFocus()
|
||||||
|
|
||||||
onItemRightClicked: RoomManager.viewEventMenu(root.currentEventId, root.currentRoom)
|
onItemRightClicked: RoomManager.viewEventMenu(root.currentEventId, root.currentRoom)
|
||||||
|
|
||||||
onSaveItem: {
|
onSaveItem: {
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ Components.AbstractMaximizeComponent {
|
|||||||
property color avatarColor
|
property color avatarColor
|
||||||
required property string avatarSource
|
required property string avatarSource
|
||||||
|
|
||||||
|
onOpened: forceActiveFocus()
|
||||||
|
|
||||||
Shortcut {
|
Shortcut {
|
||||||
sequences: [StandardKey.Cancel]
|
sequences: [StandardKey.Cancel]
|
||||||
onActivated: root.close()
|
onActivated: root.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user