m-wynn / sddm_wynn-theme

Material Design sddm theme
Creative Commons Attribution Share Alike 4.0 International
24 stars 5 forks source link

Keyboard controls not responding if page was opened by mouse #10

Closed EricKotato closed 5 years ago

EricKotato commented 6 years ago

Greetings.

When selecting page by mouse, keyboard controls stops to respond. Problem stands for all three pages, but it is tricky to fix them all.

For "sessions" page you can just add this call to onClicked (Main.qml, line 286):

sessionFrame.currentItem.forceActiveFocus()

so it will be

onClicked: {
    root.state = "stateSession"
    sessionFrame.focus = true
    sessionFrame.currentItem.forceActiveFocus()
}

You can actually do same thing to other two pages ("users" and "power"), but if you will, then there will be frame showing current selection even if pages was selected by mouse. It makes no difference for "sessions" page though.