Commit 58e1c47
committed
keybindings: Improve consistency during modal states, fix layout
switching.
- Move ime pre-edit workaround from the menu applet to the StEntry
class so it can benefit all users of the class.
- Remove another old keybinding workaround from the menu applet.
(8a0d2d9)
- Make non-XKB-option layout-switching usable in all Action modes
- Handle the RunDialog's super-to-cancel on key-release instead of
key-press.
- Have Main._stageEventHandler trigger modifier-only keybindings on
key-release instead of -press.
The last item ends up recreating modifier-only keybinding handling
that currently exists in muffin's keybindings.c.
The most important part is that it identifies a modifier as the
keyval on key-press but only stores the keybinding action if there's
a match.
If there's a subsequent key-press of a normal key, that keybinding
is triggered if one exists. If the next event is a release, the
stored action is triggered instead.1 parent af735cb commit 58e1c47
5 files changed
Lines changed: 123 additions & 26 deletions
Lines changed: 0 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1833 | 1833 | | |
1834 | 1834 | | |
1835 | 1835 | | |
1836 | | - | |
1837 | | - | |
1838 | | - | |
1839 | | - | |
1840 | | - | |
1841 | | - | |
1842 | | - | |
1843 | | - | |
1844 | | - | |
1845 | | - | |
1846 | | - | |
1847 | | - | |
1848 | | - | |
1849 | 1836 | | |
1850 | 1837 | | |
1851 | 1838 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
534 | 540 | | |
535 | | - | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
536 | 547 | | |
537 | 548 | | |
538 | 549 | | |
539 | 550 | | |
540 | | - | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
541 | 557 | | |
542 | 558 | | |
543 | 559 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1278 | 1278 | | |
1279 | 1279 | | |
1280 | 1280 | | |
1281 | | - | |
1282 | | - | |
1283 | | - | |
1284 | | - | |
1285 | | - | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
1286 | 1302 | | |
1287 | 1303 | | |
1288 | 1304 | | |
1289 | 1305 | | |
1290 | | - | |
1291 | | - | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
1292 | 1311 | | |
1293 | 1312 | | |
1294 | 1313 | | |
1295 | 1314 | | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
1296 | 1320 | | |
1297 | 1321 | | |
1298 | 1322 | | |
1299 | | - | |
1300 | | - | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
1301 | 1341 | | |
1302 | 1342 | | |
1303 | 1343 | | |
1304 | 1344 | | |
1305 | 1345 | | |
1306 | 1346 | | |
1307 | 1347 | | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
1308 | 1366 | | |
1309 | 1367 | | |
1310 | 1368 | | |
| |||
1319 | 1377 | | |
1320 | 1378 | | |
1321 | 1379 | | |
| 1380 | + | |
| 1381 | + | |
1322 | 1382 | | |
1323 | 1383 | | |
1324 | 1384 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
190 | 198 | | |
191 | 199 | | |
192 | 200 | | |
| |||
230 | 238 | | |
231 | 239 | | |
232 | 240 | | |
233 | | - | |
| 241 | + | |
234 | 242 | | |
235 | 243 | | |
236 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
914 | 914 | | |
915 | 915 | | |
916 | 916 | | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
917 | 942 | | |
918 | 943 | | |
919 | 944 | | |
| |||
997 | 1022 | | |
998 | 1023 | | |
999 | 1024 | | |
| 1025 | + | |
1000 | 1026 | | |
1001 | 1027 | | |
1002 | 1028 | | |
| |||
0 commit comments