Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically load selected docsets without enter or click
This fixes one of my main peeves working between Dash and Zeal. Dash automatically loads the selected docset in the tree when changing the selection with the keyboard. Up until now, Zeal has required enter to be pressed to load a docset selected with the keyboard, which additionally moved focus away from the tree. That is, in Dash the workflow is: - search something - use up/down arrows to move to relevant looking item - [docset loads after a small delay] - use up/down arrows to move to a different item - ... While in Zeal this has been: - search something - use up/down arrows to move to an item - press enter to load selected item - [focus moves to web view, keyboard can no longer change selection] - use mouse to pick a different item or to focus tree again - ... This commit implements behaviour similar to Dash. Notably: - Focus is no longer lost when a docset is loaded unless it is actively selected with enter or a click. This is mostly to maintain the existing behaviour for these actions. Personally I feel clicking an item should leave focus in the tree for further keyboard selection. - The timeout for searching now serves as a general purpose delayed docset load timeout. This limits the typing and selection delays to the same value, but the 400ms currently used seems to work well in both cases. - An "active" load (click/enter) overrides any delayed load (keyboard selection)
- Loading branch information