[gnome-shell/wip/snwh/icons-cleanup: 13/14] keyboard: Reindent key definitions
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/snwh/icons-cleanup: 13/14] keyboard: Reindent key definitions
- Date: Fri, 4 Feb 2022 13:59:22 +0000 (UTC)
commit 7a58f7627888dabad8021bc2b118034e64c4a30b
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Feb 1 00:30:47 2022 +0100
keyboard: Reindent key definitions
... to match the non-legacy eslint config.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2141>
js/ui/keyboard.js | 62 +++++++++++++++++++++++++++++++++++++------------------
1 file changed, 42 insertions(+), 20 deletions(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index 639a742737..965c75dc34 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -25,29 +25,51 @@ const SHOW_KEYBOARD = 'screen-keyboard-enabled';
const KEY_SIZE = 2;
const defaultKeysPre = [
- [[], [], [{ width: 1.5, level: 1, extraClassName: 'shift-key-lowercase', icon:
'keyboard-shift-filled-symbolic' }], [{ label: '?123', width: 1.5, level: 2 }]],
- [[], [], [{ width: 1.5, level: 0, extraClassName: 'shift-key-uppercase', icon:
'keyboard-shift-filled-symbolic' }], [{ label: '?123', width: 1.5, level: 2 }]],
- [[], [], [{ label: '=/<', width: 1.5, level: 3 }], [{ label: 'ABC', width: 1.5, level: 0 }]],
- [[], [], [{ label: '?123', width: 1.5, level: 2 }], [{ label: 'ABC', width: 1.5, level: 0 }]],
+ [
+ [],
+ [],
+ [{ width: 1.5, level: 1, extraClassName: 'shift-key-lowercase', icon:
'keyboard-shift-filled-symbolic' }],
+ [{ label: '?123', width: 1.5, level: 2 }],
+ ], [
+ [],
+ [],
+ [{ width: 1.5, level: 0, extraClassName: 'shift-key-uppercase', icon:
'keyboard-shift-filled-symbolic' }],
+ [{ label: '?123', width: 1.5, level: 2 }],
+ ], [
+ [],
+ [],
+ [{ label: '=/<', width: 1.5, level: 3 }],
+ [{ label: 'ABC', width: 1.5, level: 0 }],
+ ], [
+ [],
+ [],
+ [{ label: '?123', width: 1.5, level: 2 }],
+ [{ label: 'ABC', width: 1.5, level: 0 }],
+ ],
];
const defaultKeysPost = [
- [[{ width: 1.5, keyval: Clutter.KEY_BackSpace, icon: 'edit-clear-symbolic' }],
- [{ width: 2, keyval: Clutter.KEY_Return, extraClassName: 'enter-key', icon: 'keyboard-enter-symbolic'
}],
- [{ width: 3, level: 1, right: true, extraClassName: 'shift-key-lowercase', icon:
'keyboard-shift-filled-symbolic' }],
- [{ action: 'emoji', icon: 'face-smile-symbolic' }, { action: 'languageMenu', extraClassName:
'layout-key', icon: 'keyboard-layout-filled-symbolic' }, { action: 'hide', extraClassName: 'hide-key', icon:
'go-down-symbolic' }]],
- [[{ width: 1.5, keyval: Clutter.KEY_BackSpace, icon: 'edit-clear-symbolic' }],
- [{ width: 2, keyval: Clutter.KEY_Return, extraClassName: 'enter-key', icon: 'keyboard-enter-symbolic'
}],
- [{ width: 3, level: 0, right: true, extraClassName: 'shift-key-uppercase', icon:
'keyboard-shift-filled-symbolic' }],
- [{ action: 'emoji', icon: 'face-smile-symbolic' }, { action: 'languageMenu', extraClassName:
'layout-key', icon: 'keyboard-layout-filled-symbolic' }, { action: 'hide', extraClassName: 'hide-key', icon:
'go-down-symbolic' }]],
- [[{ width: 1.5, keyval: Clutter.KEY_BackSpace, icon: 'edit-clear-symbolic' }],
- [{ width: 2, keyval: Clutter.KEY_Return, extraClassName: 'enter-key', icon: 'keyboard-enter-symbolic'
}],
- [{ label: '=/<', width: 3, level: 3, right: true }],
- [{ action: 'emoji', icon: 'face-smile-symbolic' }, { action: 'languageMenu', extraClassName:
'layout-key', icon: 'keyboard-layout-filled-symbolic' }, { action: 'hide', extraClassName: 'hide-key', icon:
'go-down-symbolic' }]],
- [[{ width: 1.5, keyval: Clutter.KEY_BackSpace, icon: 'edit-clear-symbolic' }],
- [{ width: 2, keyval: Clutter.KEY_Return, extraClassName: 'enter-key', icon: 'keyboard-enter-symbolic'
}],
- [{ label: '?123', width: 3, level: 2, right: true }],
- [{ action: 'emoji', icon: 'face-smile-symbolic' }, { action: 'languageMenu', extraClassName:
'layout-key', icon: 'keyboard-layout-filled-symbolic' }, { action: 'hide', extraClassName: 'hide-key', icon:
'go-down-symbolic' }]],
+ [
+ [{ width: 1.5, keyval: Clutter.KEY_BackSpace, icon: 'edit-clear-symbolic' }],
+ [{ width: 2, keyval: Clutter.KEY_Return, extraClassName: 'enter-key', icon:
'keyboard-enter-symbolic' }],
+ [{ width: 3, level: 1, right: true, extraClassName: 'shift-key-lowercase', icon:
'keyboard-shift-filled-symbolic' }],
+ [{ action: 'emoji', icon: 'face-smile-symbolic' }, { action: 'languageMenu', extraClassName:
'layout-key', icon: 'keyboard-layout-filled-symbolic' }, { action: 'hide', extraClassName: 'hide-key', icon:
'go-down-symbolic' }],
+ ], [
+ [{ width: 1.5, keyval: Clutter.KEY_BackSpace, icon: 'edit-clear-symbolic' }],
+ [{ width: 2, keyval: Clutter.KEY_Return, extraClassName: 'enter-key', icon:
'keyboard-enter-symbolic' }],
+ [{ width: 3, level: 0, right: true, extraClassName: 'shift-key-uppercase', icon:
'keyboard-shift-filled-symbolic' }],
+ [{ action: 'emoji', icon: 'face-smile-symbolic' }, { action: 'languageMenu', extraClassName:
'layout-key', icon: 'keyboard-layout-filled-symbolic' }, { action: 'hide', extraClassName: 'hide-key', icon:
'go-down-symbolic' }],
+ ], [
+ [{ width: 1.5, keyval: Clutter.KEY_BackSpace, icon: 'edit-clear-symbolic' }],
+ [{ width: 2, keyval: Clutter.KEY_Return, extraClassName: 'enter-key', icon:
'keyboard-enter-symbolic' }],
+ [{ label: '=/<', width: 3, level: 3, right: true }],
+ [{ action: 'emoji', icon: 'face-smile-symbolic' }, { action: 'languageMenu', extraClassName:
'layout-key', icon: 'keyboard-layout-filled-symbolic' }, { action: 'hide', extraClassName: 'hide-key', icon:
'go-down-symbolic' }],
+ ], [
+ [{ width: 1.5, keyval: Clutter.KEY_BackSpace, icon: 'edit-clear-symbolic' }],
+ [{ width: 2, keyval: Clutter.KEY_Return, extraClassName: 'enter-key', icon:
'keyboard-enter-symbolic' }],
+ [{ label: '?123', width: 3, level: 2, right: true }],
+ [{ action: 'emoji', icon: 'face-smile-symbolic' }, { action: 'languageMenu', extraClassName:
'layout-key', icon: 'keyboard-layout-filled-symbolic' }, { action: 'hide', extraClassName: 'hide-key', icon:
'go-down-symbolic' }],
+ ],
];
var AspectContainer = GObject.registerClass(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]