Unexpected-Keyboard icon indicating copy to clipboard operation
Unexpected-Keyboard copied to clipboard

[Feature Request] Custom Layouts: Custom Layers

Open ShaKabosh opened this issue 1 year ago • 2 comments

Description

In Unexpected Keyboard, there is seemingly this concept of "layers", where you have a text layer, numeric layer, emoji, greekmath, and clipboard layer. It would be extremely useful for more complex keyboard layouts, if custom "layerAs" could be defined in the XML format, or preexisting layers could be modified for that specific layout.

How this could look

To maintain compatability with the current spec, a new tag, layer could be created and placed inside the main keyboard tag. Then, a new complex key type (perhaps layer?) could be used to switch between custom layers. An example:

<?xml version="1.0" encoding="utf-8"?>
<keyboard name="Example">
    ...
    <row>
        ...
        <key c=":layer symbol='&#x2461;':secondary"/>
        ...
    </row>
    ...
    <layer name="secondary">
        ...
        <row>
            ...
            <key c="switch_text"/>
            ...
        </row>
        ...
    </layer>
    ...
</keyboard>

ShaKabosh avatar Dec 03 '24 09:12 ShaKabosh

Thanks for your issue. This was also suggested in https://github.com/Julow/Unexpected-Keyboard/issues/678 and was one of the inspirations for the "complex" key thing. I hope this could also help implement custom numpads as this was asked a few times (https://github.com/Julow/Unexpected-Keyboard/issues/459, https://github.com/Julow/Unexpected-Keyboard/issues/808).

Would you be interested in implementing this ?

Julow avatar Dec 04 '24 22:12 Julow

This would be really powerful. I'd really like to be able to create/customise my own layers.

michele-bs avatar Jul 01 '25 22:07 michele-bs