[gnome-shell/wip/snwh/icons-cleanup: 1/2] keyboard: Reindent key definitions




commit 4d897c671b89b5df3fbbbdaf80457bcda3660796
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.

 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]