Hot answers tagged


Give the user what they asked for If the user has to click something to bring up search ... they probably want to search. Focus the field to save them any extraneous clicks, then watch users in action to see what potential pitfalls that creates.


onchange is too slow, onkeyup is too fast -- fortunately there is a middle ground, which doesn't require pestering the user with a notification: debounce the input events. Essentially what this means is that you set the event to trigger on both keyup and blur, but limit the speed at which repeated triggers are taken into account: on receiving a new event, ...


Need more context here. Behaviour is different for desktop (windows, mac) app as compared to web. Desktop The dialog opens as a new window. Typically, the new window gets focus. User can tab to return focus to the main window, while keeping the smaller dialog. Or close the window using the close window shortcut (Windows: Ctrl + W , Mac: Cmd + W) Web Web ...

Only top voted, non community-wiki answers of a minimum length are eligible