Bug 460996 - qmlkonsole keyboard button doesn't hide the keyboard
Summary: qmlkonsole keyboard button doesn't hide the keyboard
Status: REPORTED
Alias: None
Product: QMLKonsole
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Devin Lin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-25 19:08 UTC by Kevan
Modified: 2022-11-03 16:07 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevan 2022-10-25 19:08:45 UTC
SUMMARY
On Plasma Mobile, qmlkonsole does not seem to hide the keyboard when pressing the keyboard button. Instead, it seems as though the keyboard is killed, and immediately respawned.


STEPS TO REPRODUCE
1. Open qmlkonsole
2. Open virtual-keyboard inside of qmlkonsole
3. Try to close the virtual keyboard using the keyboard button on the bottom toolbar, (not using the v arrow on the navigation bar)

OBSERVED RESULT
The keyboard blinks, as though being killed/respawned perhaps. Ultimately, it is not hidden

EXPECTED RESULT
The keyboard is toggled away. Pressing the button again once the keyboard is gone would bring it back. Pressing the button while the keyboard is visible would make it hidden

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux ARM Danctnix for Pinephone Pro
(available in About System)
KDE Plasma Version: 5.26.1
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION
qmlkonsole 22.09-1
Comment 1 Devin Lin 2022-10-28 00:57:27 UTC
Hmm, this might be a KWin bug, since this had worked at some point. The app currently calls Qt.inputMethod.hide(), which seems to hide it, and then immediately restore it.
Comment 2 Mike Gelfand 2022-11-03 16:07:44 UTC
What happens in my experience (testing on an PinePhone) is that it results in button being "clicked" 2 times: once when you press the button (by putting the finger down on the screen), and once when you release it (by pulling the finger up away from the screen). You can see the effect by doing it slowly, not quickly tapping the button. Consequently, if you press the button (which will hide the keyboard) and then drag your finger away from the button area (while still keeping it on the screen) before releasing, the keyboard will stay hidden.