Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't perform shortcut when input is focused #871

Closed
shilman opened this issue Apr 15, 2017 · 1 comment
Closed

Can't perform shortcut when input is focused #871

shilman opened this issue Apr 15, 2017 · 1 comment
Assignees
Labels

Comments

@shilman
Copy link
Member

shilman commented Apr 15, 2017

Issue by willowcheng
Wednesday Apr 12, 2017 at 04:15 GMT
Originally opened as storybook-eol/storybook-ui#81


In #60, it was discussed to fix the bug as ⌘ ⇧ → and ⌘ ⇧ ← would trigger shortcut if <input> is focused. Along with the fix, it would also remove part of functionality of shortcut. Check this repo for minimal reproducing with auto focused <input>.

The first time I got into trouble was using shortcut to toggle search box, I couldn't dismiss it until it's unfocused.

@shilman shilman added the bug label Apr 15, 2017
@ndelangen ndelangen added the ui label Jul 7, 2017
@Hypnosphi Hypnosphi self-assigned this Jul 30, 2017
@Hypnosphi
Copy link
Member

I think it's OK to keep disabling shortcuts when some input is focused. The issue with search box is quite annoying though. We can allow dismissing it with Esc key and/or outside click. Maybe we could use ReactModal like it's done in shortcuts_help. "Toggle Search Box" should be renamed into "Show Search Box" in that case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants