Closed fernandojsg closed 8 years ago
why not closing it with h
too instead (or apart from) of esc
? I'd expect that h
works as a toggle
@feiss Done!, I've added a extraCloseKeyCode
as optional parameter to modal, and defined h
for the help modal. It will still close if you press esc
as most people expect that to works, but h
too.
Should there be also a button anywhere to toggle help?
@dmarcos Not sure, by now I wouldn't care to add this one for the shortcuts, as I would expect from a help button somewhere on the UI to act as help for the whole inspector. Maybe we could do later a PR modifying this shortcuts modal and add in the top some little text with the links to the inspector and aframe repo or so, and then we could add that help button to the UI
it looks good to me. We can rethink help a bit later.
Cool, thanks!
It shows up when pressing
h
and close by clickingX
or pressingesc
It also fixed a bug as we didn't call
stopPropagation
when listening foresc
key on modals, and we were closing the modal and exiting the inspector at the same time.Restyled based on @feiss proposal: