@@ -77,6 +77,15 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
77
77
}
78
78
79
79
const rtl = window .getComputedStyle (document .body ).direction === " rtl" ;
80
+
81
+ const justificationKeys = [
82
+ " justifyLeft" ,
83
+ " justifyCenter" ,
84
+ " justifyRight" ,
85
+ " justifyFull" ,
86
+ ];
87
+
88
+ const listKeys = [" insertUnorderedList" , " insertOrderedList" ];
80
89
</script >
81
90
82
91
<ButtonGroup >
@@ -92,6 +101,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
92
101
key =" insertUnorderedList"
93
102
tooltip ={tr .editingUnorderedList ()}
94
103
shortcut =" Control+,"
104
+ modeVariantKeys ={listKeys }
95
105
>
96
106
{@html ulIcon }
97
107
</CommandIconButton >
@@ -102,6 +112,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
102
112
key =" insertOrderedList"
103
113
tooltip ={tr .editingOrderedList ()}
104
114
shortcut =" Control+."
115
+ modeVariantKeys ={listKeys }
105
116
>
106
117
{@html olIcon }
107
118
</CommandIconButton >
@@ -138,6 +149,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
138
149
<CommandIconButton
139
150
key =" justifyLeft"
140
151
tooltip ={tr .editingAlignLeft ()}
152
+ modeVariantKeys ={justificationKeys }
141
153
>
142
154
{@html justifyLeftIcon }
143
155
</CommandIconButton >
@@ -147,6 +159,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
147
159
<CommandIconButton
148
160
key =" justifyCenter"
149
161
tooltip ={tr .editingCenter ()}
162
+ modeVariantKeys ={justificationKeys }
150
163
>
151
164
{@html justifyCenterIcon }
152
165
</CommandIconButton >
@@ -156,6 +169,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
156
169
<CommandIconButton
157
170
key =" justifyRight"
158
171
tooltip ={tr .editingAlignRight ()}
172
+ modeVariantKeys ={justificationKeys }
159
173
>
160
174
{@html justifyRightIcon }
161
175
</CommandIconButton >
@@ -165,6 +179,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
165
179
<CommandIconButton
166
180
key =" justifyFull"
167
181
tooltip ={tr .editingJustify ()}
182
+ modeVariantKeys ={justificationKeys }
168
183
>
169
184
{@html justifyFullIcon }
170
185
</CommandIconButton >
0 commit comments