Use the keyboard to collapse a toggle block

Is your feature request related to a problem? Please describe.
It’s a personal preference how you use your keyboard to interact with software (that’s why I like the Customizable keyboard shortcuts feature request). To outline the current behavior for toggle blocks as tested on Anytype for Windows 0.24.0.

  • To make a new toggle use ">" + space, then a name OR use toggle in the / (slash) menu
    • Note that the behavior between “>” and /toggle is different! “>” creates a toggle and expands the toggle immediately, so with Enter you go inside the toggle. With /toggle you create a toggle, but it does not automatically expand, and after typing some text and then pressing Enter causes a new toggle to be created.
  • Create another toggle after creating a toggle and typing text, use enter
  • To make a toggle with a multiline name, use shift + enter
  • To type inside the toggle, expand the toggle with right arrow, then enter to move the cursor inside the toggle
  • To nest a toggle inside the toggle above, use tab
  • To unnest a toggle from its parent toggle, use shift + tab

What I am missing is a way to use the keyboard to collapse a toggle.

Describe the solution you’d like
I would prefer to have the toggle collapse if you press left arrow at the start of the toggle name. If you start in a block that is inside a toggle, you then use the left arrow to go to the beginning of that block. After reaching the beginning of that block you move to the end of the toggle name. After using the left arrow some more, you end up at the beginning of the toggle name. If you then use the left arrow once more, the toggle collapses. Does that behavior also make sense to you?
Describe alternatives you’ve considered
A clear and concise description of any alternative solutions or features you’ve considered.

Additional context
None atm.

This doesn’t seem to work for me… Is it supposed to?

Edit: btw, I just linked this here:

I’ll need to check on the latest release.

@qualquertipo You are right, on 0.29.0 (but maybe already since an earlier version) it doesn’t work (anymore?) to create another toggle using Enter. I’ll update my original post.

Edit: @qualquertipo I’m not sure what I did wrong the last time, but I can actually still create a new toggle on a new line with enter:

Note the different behavior between using “>” to create a toggle and using the / slash menu to create a toggle.