keyboard: Add/document "height" optional property
This will allow OSK descriptions to declare "tall" keys. May be used in combination with the "start" property added in previous commits, in case a gap needs to be explicitly left. No OSK description uses this yet. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3162>
This commit is contained in:
parent
d1aa2acef1
commit
cfc0d42c7a
@ -63,7 +63,10 @@ it has the following structure:
|
|||||||
accepted.
|
accepted.
|
||||||
- width (Double): Relative width of the key in the
|
- width (Double): Relative width of the key in the
|
||||||
row. 1 is for a square key. Multiples of 0.5 are
|
row. 1 is for a square key. Multiples of 0.5 are
|
||||||
accepted.
|
accepted. The implicit default value is 1.
|
||||||
|
- height (Double): Relative height of the key in
|
||||||
|
the grid. The key will overflow downwards. Multiples
|
||||||
|
of 0.5 are accepted. The implicit default value is 1.
|
||||||
- level (Integer): Level that the key switches to.
|
- level (Integer): Level that the key switches to.
|
||||||
See the levelSwitch action.
|
See the levelSwitch action.
|
||||||
- action (string): Action performed by the key,
|
- action (string): Action performed by the key,
|
||||||
|
@ -1564,7 +1564,7 @@ export const Keyboard = GObject.registerClass({
|
|||||||
if (key.action || key.keyval)
|
if (key.action || key.keyval)
|
||||||
button.keyButton.add_style_class_name('default-key');
|
button.keyButton.add_style_class_name('default-key');
|
||||||
|
|
||||||
layout.appendKey(button, key.width, 1, key.leftOffset);
|
layout.appendKey(button, key.width, key.height, key.leftOffset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user