Separate numeric keyboard

Keyboards are reeeally easy to make yourself.

Look how any keyboard layout package does it, create your own files, and edit them.

The files are found in /usr/share/maliit/plugins/com/jolla/layouts/. You need at least two files, a mylayout.conf and a mylayout.qml file.

The conf file looks like this:

[mylayout.qml]
name=My Numeric KBD
languageCode=_
;handler=Xt9InputHandler.qml

(That last line turns off suggestions which are quite useless for a numerc kbd. For regular layouts you may want to turn this on.)

Now the mylayout.qml is a bit more complicated but after looking at some examples it’s easy to figure out.

The basic structure is

import QtQuick 2.0
import ".."

KeyboardLayout {
    KeyboardRow {
        CharacterKey { caption:  "1" }
        CharacterKey { caption:  "2"  }
        CharacterKey { caption:  "3"  }
        EnterKey {}
    }
}

This creates a custom keyboard with one row and four keys, 1, 2, and 3, and Enter.

6 Likes