← Back to team overview

ubuntu-phone team mailing list archive

Re: [Development] Writing a chorded keyboard for Ubuntu Touch

 

On Sat, Sep 12, 2015 at 1:55 PM, Alexander Burger <abu@xxxxxxxxxxxxxxx>
wrote:

> > Hello list,
>
> > On Sun, Aug 02, 2015 at 05:22:28PM +0200, Alexander Burger wrote:
> > Hmm, it seems that nobody is here who can give techincal input on that
> > matter.
> >
> > Isn't this the development mailing list? Is this the wrong place to ask,
> > and where should I ask instead? Is there some list dedicated to Ubuntu
> > Phone *system* programming?
> >
> > Or should I better look at CyanogenMod or FirefoxOS?
>
> OK. Sorry!
>
> I gave up Ubuntu Phone (no dev support, it seems, and no docs).
>

Hi Alexander,
I'm really sorry to hear that. Have you tried asking on IRC channels like
#ubuntu-touch and #ubuntu-app-devel ?

It could still take a few days before you a field expert reads your message
and helps you out (hint: posting over weekend will make it more difficult
as employees are hopefully not working) but I'm sure someone would
eventually try to help you get started with your project :)

Let's see if I can be of any help here:

1) Handling multiple touch points via QML is demoed in this example
http://doc.qt.io/qt-5/qtquick-touchinteraction-example.html
Have a look at it and let me know if you find it useful :)

2) Posting key events should be straightforward, thanks to Qt :) Have a
look at
http://doc.qt.io/qt-5/qcoreapplication.html#sendEvent

3) I'm not sure we support installing custom keyboards, but I'm quite sure
it could be done somehow. Ubuntu Touch uses Maliit framework to handle the
virtual keyboard, and Maliit has a plugin system which I'm quite sure you
can exploit for your purposes.
I'm not familiar with it at the moment, but we can have a look at it
together!
As a start, I'd have a look at
https://code.launchpad.net/~thomas-moenicke/phablet-extras/maliit-framework-settings/+merge/168037

It seems there's a config file for maliit which can be overridden by user
settings to specify which keyboard/plugin is the default one. Changing that
is probably enough :)

For a reference implementation you can have a look at UbuntuTouch's
keyboard code, which you can find here
http://bazaar.launchpad.net/~phablet-team/ubuntu-keyboard/trunk/files

Hope that helps! :)

Andrea

Installed CyanogenMod instead.
>
> I wrote the chord keyboard as an Android App (needs >= 5.0, or CM 12.0).
> If anybody is interested, it can be downloaded from
>
>    http://software-lab.de/pentiKeyboard.apk
>
> A cheat Sheet is at
>
>    http://software-lab.de/Penti
>
> ♪♫ Alex
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp
>

References