The shortcut keys do not work with the Japanese keyboard layout either. Taking a quick look at ts/editor
, it seems that the indent and outdent shortcut keys are only working when the icons for the block level formatting commands are popping up. You can confirm the behavior with the following code:
diff --git a/ts/components/Shortcut.svelte b/ts/components/Shortcut.svelte
index 0c8e77bfe..78d6be6e1 100644
--- a/ts/components/Shortcut.svelte
+++ b/ts/components/Shortcut.svelte
@@ -13,7 +13,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
const dispatch = createEventDispatcher();
- onMount(() =>
+ onMount(() => {
+ console.log(`${keyCombination} has mounted!`);
registerShortcut(
(event: KeyboardEvent) => {
preventDefault(event);
@@ -21,6 +22,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
},
keyCombination,
{ event },
- ),
- );
+ );
+ return () => console.log(`${keyCombination} has destroyed!`);
+ });
</script>
(I don’t know how to properly fix it.)