You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're interested in getting even fancier with it you could also add shortcuts for placing tiles. The backend actually returns a complete list of valid tile place locations in the targets list so it could look something like press p > all valid placement locations light up with a number > press corresponding number > tile is placed. This is beyond the scope of this PR but could be a cool interaction if you're ever interested in adding that as well.
Yea i already imagined something like that and searched for methods in the drag and drop library (dnd-kit) for automatically picking up the tile and having it at the mouse cursor without moving the mouse to get the tile.
So far i just found, that this library works with arrow keys to move the tile with the keyboard if the DraggableToken has a tabindex (test commit)
If you're interested in getting even fancier with it you could also add shortcuts for placing tiles. The backend actually returns a complete list of valid tile place locations in the targets list so it could look something like press
p
> all valid placement locations light up with a number > press corresponding number > tile is placed. This is beyond the scope of this PR but could be a cool interaction if you're ever interested in adding that as well.Originally posted by @freglyc in #11 (review)
The text was updated successfully, but these errors were encountered: