-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work ontype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
Description
Because / is a shortcut the jumps focus to the search field.
It's probably best to test if document.activeElement is a input or textarea tag before stealing focus and calling e.preventDefault().
dartdoc/lib/resources/script.js
Lines 193 to 198 in 29db621
| $(document).keypress(function(event) { | |
| if (event.which == 47 /* / */) { | |
| event.preventDefault(); | |
| $('#' + name).focus(); | |
| } | |
| }); |
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work ontype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)