2

First of all, I want to give you an example to describe you the problem: All the time I want to use the Voicemessage option from Markcortbass' App 'WebWhatsapp', the OnScreen keyboard appears on the screen and I can't record. In this case Ubuntu Touch seems to recognize the text field on the left side and switches into the typing mode. To avoid this, I must connect a physical keyboard to my device. That's annoying. That might not be a bug from Markcortbass because the code of the Whatsapp Web is owned by Whatsapp itself and not manipulatable. However, now to my general question: Is there a way to temporaryly disable the OnScreen keyboard when there's no physical keyboard connected? E.g. a launcher or a small app running in background and suppressing the OnScreen keyboard? Thanks in advice!

  • Is dragging the on-screen keyboard down the screen not useful? – pomsky Aug 3 '16 at 16:58
  • No, sorry. It comes again and again. :( – Bjarne Roß Aug 3 '16 at 18:01
0

Bjarne, I found this bug description, where Michael Zanetti suggests this command for analyzing of one situation:

gsettings get com.canonical.keyboard.maliit stay-hidden

so, I think this should work:

gsettings set com.canonical.keyboard.maliit stay-hidden true
|improve this answer|||||
  • Very nice, thanks! I should create a launcher for switching this property. – Bjarne Roß Nov 5 '16 at 10:49
  • I've tested this method from ssh terminal, it works for me. Do you know how to do such launcher? – Vladimir Nov 5 '16 at 11:41
  • I already created one toggling between true and false. It's primitive, but it's working. – Bjarne Roß Nov 5 '16 at 11:45
0

Create a bash file and paste this:

#!/bin/bash

SCHEMA="com.canonical.keyboard.maliit"
KEY="stay-hidden"

STATUS=$(gsettings get ${SCHEMA} ${KEY})

if [ ${STATUS} == true ]; then
    gsettings set ${SCHEMA} ${KEY} false
else
    gsettings set ${SCHEMA} ${KEY} true
fi

Important: Make the bash file executable (chmod +x)! Then create a launcher (.desktop file) in ~/.local/share/applications and paste this:

[Desktop Entry]
Name=OnScreen Keyboard Toggle
Type=Application
Terminal=false
X-Ubuntu-Touch=true
Icon=keyboard
Exec=PATH_OF_THE_BASH_FILE

The launcher appears on the App scope of your Ubuntu Touch Device. When you tab on it, it opens for a few seconds and gets closed. In this time the maliit keyboard has been toggled. Tab again to toggle back.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.