Skip to content

Indent and dedent shortcuts unavailable on some keyboards #17

@zeniko

Description

@zeniko

The #IndentSnippet and #UnindentSnippet shortcuts defined in LeSnippetElement class >> #initializeKeyboardShorcuts are currently primary + bracket.

On some keyboards such as my de-CH one, brackets however have to be entered by [AltGr]+key or [primary]+[secondary]+key, so that (un)indenting by keyboard doesn't work at all.

For me, I've redefined the shortcuts 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]+[arrow]).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions