Bycelium / PyFlow

An open-source tool for visual and modular block programming in python
GNU General Public License v3.0
1.27k stars 52 forks source link

:tada: Add editing navigation using alt & escape #287

Closed MathisFederico closed 2 years ago

MathisFederico commented 2 years ago

Adds:

FabienRoger commented 2 years ago

This looks very good! Pressing alt when exiting a block moves the cursor to the menu bar, making it impossible to move between blocks with the arrows without pressing alt (except if you press alt again to make the cursor exit the menu bar). It might be better to always prevent the alt key moving the cursor to the menu bar? What do you think?

I was not able to fix this, the app style would need to be modified, but I found no easy way of doing it.

MathisFederico commented 2 years ago

Pressing alt when exiting a block moves the cursor to the menu bar, making it impossible to move between blocks with the arrows without pressing alt.

I changed the key to enter/backspace as we can't seem to be able to override the alt button behavior.

FabienRoger commented 2 years ago

I changed the key to enter/backspace as we can't seem to be able to override the alt button behavior.

I like this new shortcut, it makes it natural that it isn't possible to focus out of a block. I don't have a natural idea for a shortcut working both ways...

(I fixed that the user couldn't make new lines by pressing enter inside the block by disabling the shortcut inside blocks.)