[GREENFOOT-348] Make tab indent selection
Most code editors have the behaviour that if you select a bunch of code and press TAB, the code gets indented (i.e. TAB on a selection is bound to our "indent more" function, which we have as F6). I've seen/heard from several users who find it irritating that we don't have the same behaviour. Instead, Greenfoot deletes the selection and adds some spaces. This functionality is so rarely wanted, and the other functionality is so often expected, that I think we should change the behaviour of the TAB key.
Also, while we're at it, Shift-TAB for "indent less" is often expected too. Here, Greenfoot has a logical-but-rarely-wanted behaviour: if you select a bunch of lines then hit shift-TAB, it cancels the selection and de-indents the single line you're on, but I think it should de-indent all lines in the selection.
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 2.2.0