mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-27 06:52:50 -05:00
lock/greeter: keyboard accessibility improvements
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
pragma ComponentBehavior: Bound
|
||||
pragma ComponentBehavior
|
||||
|
||||
import QtQuick
|
||||
|
||||
@@ -14,19 +14,21 @@ Item {
|
||||
|
||||
function show() {
|
||||
if (!isKeyboardActive && keyboard === null) {
|
||||
keyboard = keyboardComponent.createObject(keyboard_controller.rootObject);
|
||||
keyboard.target = keyboard_controller.target;
|
||||
isKeyboardActive = true;
|
||||
keyboard = keyboardComponent.createObject(
|
||||
keyboard_controller.rootObject)
|
||||
keyboard.target = keyboard_controller.target
|
||||
keyboard.dismissed.connect(hide)
|
||||
isKeyboardActive = true
|
||||
} else
|
||||
console.log("The keyboard is already shown");
|
||||
console.log("The keyboard is already shown")
|
||||
}
|
||||
|
||||
function hide() {
|
||||
if (isKeyboardActive && keyboard !== null) {
|
||||
keyboard.destroy();
|
||||
isKeyboardActive = false;
|
||||
keyboard.destroy()
|
||||
isKeyboardActive = false
|
||||
} else
|
||||
console.log("The keyboard is already hidden");
|
||||
console.log("The keyboard is already hidden")
|
||||
}
|
||||
|
||||
// private
|
||||
|
||||
Reference in New Issue
Block a user