Closed WNewhook closed 7 years ago
I think that's the right thing to do.
@inexpensive @jillhancock @christopher-rodgers I managed to get tab working to close labels by changing the input handler from acting on keyup to keydown. It works for me, but can you guys take another look?
I like being able to end the input of a string with a tab. That's a nice touch.
But I noticed if I add a callworld node with say two place holders and then select this call world node, so the situation is like this (! is anchor and ^ is focus)
someNode( someNode(), ! callWorld[+]( ExpPH() , ExpPH() ) ^ , someNode() )
then tab will not move to the first ExpPH. This is because of the way I defined moveRight and moveLeft in the winter.
I'd propose changing the interpretation of moveRight and moveLeft. This affects the right, left, up and down keys too, but in a good way, I think.
My proposal is in commit 60c81f188220db3fb50e5de79295669b0bd2fe58 on branch ImprovedMoves. If you think it's ok, merge it into this branch before merging this pull request.
@inexpensive @jillhancock @christopher-rodgers Here's the pull request for moving between placeholder with tab. I couldn't get the browser to ignore the tab when closing a label, but it works for navigation.