flobrosch / valadoc-org

32 stars 5 forks source link

Navigation keys are swallowed by focused search field #28

Closed danirabbit closed 8 years ago

danirabbit commented 8 years ago

I think we should focus the content area on page load instead of the search field. Some users are experiencing a broken expectation of being able to use navigation keys without first focusing the document. Since the search field is immediately focused, it swallows all keyboard input. We now redirect keystrokes (excluding navigation keys) to the search field regardless of focus, so it doesn't need to be focused by default.