mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
fix: keyboard navigation (#2023)
* fix: self-hosted easy install card * fix: label double click when enter/return pressed
This commit is contained in:
@@ -71,6 +71,8 @@ Item {
|
|||||||
implicitHeight: content.implicitHeight + content.anchors.leftMargin + content.anchors.rightMargin
|
implicitHeight: content.implicitHeight + content.anchors.leftMargin + content.anchors.rightMargin
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
id: mouseArea
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
hoverEnabled: root.enabled
|
hoverEnabled: root.enabled
|
||||||
@@ -296,13 +298,13 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Keys.onEnterPressed: {
|
Keys.onEnterPressed: {
|
||||||
if (clickedFunction && typeof clickedFunction === "function") {
|
if (!rightImageSource && clickedFunction && typeof clickedFunction === "function") {
|
||||||
clickedFunction()
|
clickedFunction()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Keys.onReturnPressed: {
|
Keys.onReturnPressed: {
|
||||||
if (clickedFunction && typeof clickedFunction === "function") {
|
if (!rightImageSource && clickedFunction && typeof clickedFunction === "function") {
|
||||||
clickedFunction()
|
clickedFunction()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ PageType {
|
|||||||
|
|
||||||
onClicked: function() {
|
onClicked: function() {
|
||||||
isEasySetup = true
|
isEasySetup = true
|
||||||
|
checked = true
|
||||||
var defaultContainerProto = ContainerProps.defaultProtocol(dockerContainer)
|
var defaultContainerProto = ContainerProps.defaultProtocol(dockerContainer)
|
||||||
|
|
||||||
listView.dockerContainer = dockerContainer
|
listView.dockerContainer = dockerContainer
|
||||||
|
|||||||
Reference in New Issue
Block a user