Commit 9d96de59 authored by Nate Graham's avatar Nate Graham
Browse files

applets/manage-inputmethod: still show close button out of Touch Mode

The virtual keyboard can appear with a touch input, not just when
you're in Touch Mode. However b1888b5e
made the button only appear when in Touch Mode, giving the user no
clear way to close the virtual keyboard when it was invoked outside of
Touch Mode.

This commit fixes that by always showing the close button when the
keyboard is visible due to being activated with a touch event outside of
Touch mode. There is no change for the "disable virtual
keyboard" button.
parent 135d9dc0
Pipeline #230974 passed with stage
in 10 minutes and 12 seconds
......@@ -113,8 +113,9 @@ Item {
target: Plasmoid.self
icon: "arrow-down"
toolTipSubText: i18n("Virtual Keyboard: visible")
// It's only relevant in tablet mode
status: Kirigami.Settings.tabletMode ? PlasmaCore.Types.ActiveStatus : PlasmaCore.Types.PassiveStatus
// Because the keyboard can become visible with a touch input when
// while not explicitly in Touch Mode
status: Kirigami.Settings.hasTransientTouchInput ? PlasmaCore.Types.ActiveStatus : PlasmaCore.Types.PassiveStatus
PropertyChanges { target: root; overlays: [] }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment