refactor uiCmdSequence into a separate function#11998
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Tested in the preview at https://pr-11998--ideditor.netlify.app/#disable_features=boundaries&map=2.00/0.0/0.0&background=Bing so yes, still works.
|
yes sorry for the poor wording, i did also test this mysefl |
tyrasd
left a comment
There was a problem hiding this comment.
Looks good to me. But can we please talk about what indentation style to use for new files? I know https://github.com/openstreetmap/iD/blob/develop/CONTRIBUTING.md#javascript has documented the different rule for ES5/ES6 files, but I think that's just silly (especially in this context, as typescript is neither).
As the majority of our source files still use 4-space indentation, why don't we stick to that even for newly added/refactored typescript code? I would leave the existing two-space indented files as they are as long as we don't touch them in a major way. Does that makes sense? If yes, I can update the documentation to reflect it.
|
sounds good to me - changed to 4 spaces now |

prerequisite for #11999
In that PR I want to reuse the logic that converts:
into:
To test: check that the keyboard shortcuts popup still renders correctly.