gtoolkit icon indicating copy to clipboard operation
gtoolkit copied to clipboard

Shortcuts for indent/dedent snippet don't work in Cyrillic layouts

Open webwarrior-ws opened this issue 3 years ago • 1 comments

Expected behavior: Pressing Ctrl+[ and Ctrl+] keys indents/dedents snippet regardless of current keyboard layout. Actual behavior: In Ukrainian or Russian layout nothing happens.

FYI, there are no keys for brackets in Cyrillic layouts.

webwarrior-ws avatar Jan 15 '23 18:01 webwarrior-ws

I do have the same issue on my de-CH keyboard (as reported in https://github.com/feenkcom/lepiter/issues/17).

Originally, I thought I could do without, but as soon as I started producing more content inside GT, these shortcuts became a must have. So I've redefined the shortcuts in startup.st to

LeSnippetElement keyboardShortcuts
	at: #IndentSnippet
		put: BlKeyCombinationBuilder new alt shift arrowRight build;
	at: #UnindentSnippet
		put: BlKeyCombinationBuilder new alt shift arrowLeft build.

which is also consistent with moving snippets up and down (which are [secondary]+[shift]+[up/down arrow]).

Please consider at least adding these shortcuts (if not replacing the bracket-based ones) for international keyboards. Thanks.

zeniko avatar May 26 '25 14:05 zeniko