Skip to content

Commit

Permalink
Fix drawer content not getting the focus
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinBuira committed Aug 5, 2024
1 parent 79c7aa2 commit 07e7c55
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions app/qml/components/MMDrawer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,21 @@ Drawer {
height: parent.height / 2
y: parent.height / 2
}

Keys.onReleased: function( event ) {
if ( event.key === Qt.Key_Back || event.key === Qt.Key_Escape ) {
root.close()
event.accepted = true
}
}
}

contentItem: Column {
id: mainColumn

anchors.fill: parent
spacing: 0
focus : true

Keys.onReleased: function( event ) {
if ( event.key === Qt.Key_Back || event.key === Qt.Key_Escape ) {
root.close()
event.accepted = true
}
}

MMListSpacer {
id: topSpacer
Expand Down

1 comment on commit 07e7c55

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 24.8.646511 just submitted!

Please sign in to comment.