From 8282667ef90c57739f43c734e261bdd369632b04 Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Sun, 6 Mar 2022 23:16:45 +0100 Subject: [PATCH] Remove interaction with username and password fields on mouse and key press events for background videos --- Main.qml | 41 +++++------------------------------------ 1 file changed, 5 insertions(+), 36 deletions(-) diff --git a/Main.qml b/Main.qml index ca99d72..b1a0236 100644 --- a/Main.qml +++ b/Main.qml @@ -75,23 +75,9 @@ Rectangle { id: mouseArea1 anchors.fill: parent; //onPressed: {playlist1.shuffle(); playlist1.next();} - onPressed: { - fader1.state = fader1.state == "off" ? "on" : "off" ; - if (config.autofocusInput == "true") { - if (username_input_box.text == "") - username_input_box.focus = true - else - password_input_box.focus = true - } - } - } - Keys.onPressed: { - fader1.state = "on"; - if (username_input_box.text == "") - username_input_box.focus = true - else - password_input_box.focus = true + onPressed: {} } + Keys.onPressed: {} } WallpaperFader { id: fader1 @@ -120,27 +106,10 @@ Rectangle { id: mouseArea2 enabled: false anchors.fill: parent; - onPressed: { - fader1.state = fader1.state == "off" ? "on" : "off" ; - if (config.autofocusInput == "true") { - if (username_input_box.text == "") - username_input_box.focus = true - else - password_input_box.focus = true - } - } - } - Behavior on opacity { - enabled: true - NumberAnimation { easing.type: Easing.InOutQuad; duration: 3000 } - } - Keys.onPressed: { - fader2.state = "on"; - if (username_input_box.text == "") - username_input_box.focus = true - else - password_input_box.focus = true + onPressed: {} } + Behavior on opacity {} + Keys.onPressed: {} } WallpaperFader {