remove manual focus control on PageShare
This commit is contained in:
parent
62be292833
commit
9620a24d6a
1 changed files with 0 additions and 106 deletions
|
|
@ -256,9 +256,6 @@ PageType {
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
accessTypeSelector.currentIndex = 0
|
accessTypeSelector.currentIndex = 0
|
||||||
if (!GC.isMobile()) {
|
|
||||||
clientNameTextField.textField.forceActiveFocus()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -543,10 +540,6 @@ PageType {
|
||||||
actionButtonFunction: function() {
|
actionButtonFunction: function() {
|
||||||
root.isSearchBarVisible = true
|
root.isSearchBarVisible = true
|
||||||
}
|
}
|
||||||
|
|
||||||
Keys.onTabPressed: clientsListView.model.count > 0 ?
|
|
||||||
clientsListView.forceActiveFocus() :
|
|
||||||
lastItemTabClicked(focusItem)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
|
@ -560,35 +553,13 @@ PageType {
|
||||||
|
|
||||||
textFieldPlaceholderText: qsTr("Search")
|
textFieldPlaceholderText: qsTr("Search")
|
||||||
|
|
||||||
Connections {
|
|
||||||
target: root
|
|
||||||
function onIsSearchBarVisibleChanged() {
|
|
||||||
if (root.isSearchBarVisible) {
|
|
||||||
// searchTextField.textField.forceActiveFocus()
|
|
||||||
} else {
|
|
||||||
searchTextField.textFieldText = ""
|
|
||||||
if (!GC.isMobile()) {
|
|
||||||
// usersHeader.actionButton.forceActiveFocus()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Keys.onEscapePressed: {
|
Keys.onEscapePressed: {
|
||||||
root.isSearchBarVisible = false
|
root.isSearchBarVisible = false
|
||||||
}
|
}
|
||||||
|
|
||||||
function navigateTo() {
|
function navigateTo() {
|
||||||
if (GC.isMobile()) {
|
|
||||||
// focusItem.forceActiveFocus()
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (searchTextField.textFieldText === "") {
|
if (searchTextField.textFieldText === "") {
|
||||||
root.isSearchBarVisible = false
|
root.isSearchBarVisible = false
|
||||||
// usersHeader.actionButton.forceActiveFocus()
|
|
||||||
} else {
|
|
||||||
// closeSearchButton.forceActiveFocus()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -602,16 +573,6 @@ PageType {
|
||||||
image: "qrc:/images/controls/close.svg"
|
image: "qrc:/images/controls/close.svg"
|
||||||
imageColor: AmneziaStyle.color.paleGray
|
imageColor: AmneziaStyle.color.paleGray
|
||||||
|
|
||||||
Keys.onTabPressed: {
|
|
||||||
if (!GC.isMobile()) {
|
|
||||||
if (clientsListView.model.count > 0) {
|
|
||||||
// clientsListView.forceActiveFocus()
|
|
||||||
} else {
|
|
||||||
// lastItemTabClicked(focusItem)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function clickedFunc() {
|
function clickedFunc() {
|
||||||
root.isSearchBarVisible = false
|
root.isSearchBarVisible = false
|
||||||
}
|
}
|
||||||
|
|
@ -631,30 +592,6 @@ PageType {
|
||||||
|
|
||||||
property bool isFocusable: true
|
property bool isFocusable: true
|
||||||
|
|
||||||
Keys.onTabPressed: {
|
|
||||||
FocusController.nextKeyTabItem()
|
|
||||||
}
|
|
||||||
|
|
||||||
Keys.onBacktabPressed: {
|
|
||||||
FocusController.previousKeyTabItem()
|
|
||||||
}
|
|
||||||
|
|
||||||
Keys.onUpPressed: {
|
|
||||||
FocusController.nextKeyUpItem()
|
|
||||||
}
|
|
||||||
|
|
||||||
Keys.onDownPressed: {
|
|
||||||
FocusController.nextKeyDownItem()
|
|
||||||
}
|
|
||||||
|
|
||||||
Keys.onLeftPressed: {
|
|
||||||
FocusController.nextKeyLeftItem()
|
|
||||||
}
|
|
||||||
|
|
||||||
Keys.onRightPressed: {
|
|
||||||
FocusController.nextKeyRightItem()
|
|
||||||
}
|
|
||||||
|
|
||||||
model: SortFilterProxyModel {
|
model: SortFilterProxyModel {
|
||||||
id: proxyClientManagementModel
|
id: proxyClientManagementModel
|
||||||
sourceModel: ClientManagementModel
|
sourceModel: ClientManagementModel
|
||||||
|
|
@ -672,8 +609,6 @@ PageType {
|
||||||
implicitWidth: clientsListView.width
|
implicitWidth: clientsListView.width
|
||||||
implicitHeight: delegateContent.implicitHeight
|
implicitHeight: delegateContent.implicitHeight
|
||||||
|
|
||||||
// property alias focusItem: clientFocusItem.rightButton
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: delegateContent
|
id: delegateContent
|
||||||
|
|
||||||
|
|
@ -703,12 +638,6 @@ PageType {
|
||||||
|
|
||||||
parent: root
|
parent: root
|
||||||
|
|
||||||
onClosed: {
|
|
||||||
if (!GC.isMobile()) {
|
|
||||||
// focusItem.forceActiveFocus()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
width: root.width
|
width: root.width
|
||||||
height: root.height
|
height: root.height
|
||||||
|
|
||||||
|
|
@ -725,14 +654,6 @@ PageType {
|
||||||
clientInfoDrawer.expandedHeight = expandedStateContent.implicitHeight + 32
|
clientInfoDrawer.expandedHeight = expandedStateContent.implicitHeight + 32
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
|
||||||
target: clientInfoDrawer
|
|
||||||
enabled: !GC.isMobile()
|
|
||||||
function onOpened() {
|
|
||||||
// focusItem1.forceActiveFocus()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Header2TextType {
|
Header2TextType {
|
||||||
Layout.maximumWidth: parent.width
|
Layout.maximumWidth: parent.width
|
||||||
Layout.bottomMargin: 24
|
Layout.bottomMargin: 24
|
||||||
|
|
@ -809,12 +730,6 @@ PageType {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
expandedHeight: root.height * 0.35
|
expandedHeight: root.height * 0.35
|
||||||
|
|
||||||
onClosed: {
|
|
||||||
if (!GC.isMobile()) {
|
|
||||||
// focusItem1.forceActiveFocus()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
expandedStateContent: ColumnLayout {
|
expandedStateContent: ColumnLayout {
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
|
@ -823,14 +738,6 @@ PageType {
|
||||||
anchors.leftMargin: 16
|
anchors.leftMargin: 16
|
||||||
anchors.rightMargin: 16
|
anchors.rightMargin: 16
|
||||||
|
|
||||||
Connections {
|
|
||||||
target: clientNameEditDrawer
|
|
||||||
enabled: !GC.isMobile()
|
|
||||||
function onOpened() {
|
|
||||||
// clientNameEditor.textField.forceActiveFocus()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
TextFieldWithHeaderType {
|
TextFieldWithHeaderType {
|
||||||
id: clientNameEditor
|
id: clientNameEditor
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -912,18 +819,5 @@ PageType {
|
||||||
id: shareConnectionDrawer
|
id: shareConnectionDrawer
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClosed: {
|
|
||||||
if (!GC.isMobile()) {
|
|
||||||
// clientNameTextField.textField.forceActiveFocus()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
onPressed: function(mouse) {
|
|
||||||
// forceActiveFocus()
|
|
||||||
mouse.accepted = false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue