Reakit: "Unexpected" filter hotkey experience on Reakit's website

Created on 4 Oct 2018  路  3Comments  路  Source: reakit/reakit

Bug report

What is the current behavior?
On Reakit Website if you hit key / the filter input will take focus. This hinders usage of the Component example playground components.

If the current behavior is a bug, please provide the steps to reproduce.
Hit the / key anywhere on the site. It kinda surprised me that we could filter like that on the site, the input focus box didn't exactly grab my attention until I hit the / key a bunch and looked around for a bit.

reakitplaygroundsadtimes gif

What is the expected behavior?



I think the / key should not focus while we are typing in playground textboxes, otherwise we can't easily code out any simple thoughts or examples into the component playground boxes.

Another option could be to make it a multi-key hotkey.

I'd expect to see something when a hotkey is activated.
Storybook has a popup modal for example:
Storybook hotkey popup example

There already is next component/previous article button at the bottom of each page, so it may not be too much of a stretch to have hotkeys for these as well.
reakit next and previous article buttons

Thoughts?

Other relevant information:
reakit version: 0.15.4

bug website

Most helpful comment

Thank you for the report! We are going to work on a fix for that!
Thomazella pointed me to where it is happening, I'll open a pr fixing it!

Issues like this are what makes our docs even better!!,

All 3 comments

* facepalm * Thanks cody! We had a good intention with that hotkey but overlooked that use case! I did as a matter of fact.

Thank you for the report! We are going to work on a fix for that!
Thomazella pointed me to where it is happening, I'll open a pr fixing it!

Issues like this are what makes our docs even better!!,

Np @Thomazella, I quite like the idea of having hotkeys on the site.
Sounds good! Thanks @PlayMa256 馃憤

Was this page helpful?
0 / 5 - 0 ratings