feat: input mgr
This commit is contained in:
23
Shell/Windows/QuickSettings/QuickSettings.qml
Normal file
23
Shell/Windows/QuickSettings/QuickSettings.qml
Normal file
@@ -0,0 +1,23 @@
|
||||
import QtQuick
|
||||
import "../.."
|
||||
import "../../Window" as ShellWindow
|
||||
|
||||
ShellWindow.Window {
|
||||
id: quickSettingsWindow
|
||||
property var manager: ShellStateManager
|
||||
|
||||
width: 1217 + 52
|
||||
height: 767 + 52
|
||||
visible: manager ? manager.quickSettingsOpen : false
|
||||
anchors.centerIn: parent
|
||||
|
||||
QtObject {
|
||||
id: quickSettingsKeyHandler
|
||||
function handle(event) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Component.onCompleted: ShellInputManager.registerHandler("quickSettings", handle)
|
||||
Component.onDestruction: ShellInputManager.unregisterHandler("quickSettings")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user