plasmoid: Ensure keyboard events can be received after initialization

This commit is contained in:
Martchus 2019-08-08 21:35:56 +02:00
parent bd345dfe12
commit b9402ce374
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,9 @@ ColumnLayout {
Layout.minimumWidth: units.gridUnit * 20
Layout.minimumHeight: units.gridUnit * 15
// ensure keyboard events can be received after initialization
Component.onCompleted: forceActiveFocus()
// define function to update the size according to the settings
// when "floating" (shown as popup) or tied to an edge
function updateSize() {