File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 3
3
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
6
+ # Unreleased
7
+
8
+ ## Changed
9
+
10
+ * Now the cursor remain focused on search box even after selecting the filter. ([#2410])
11
+
6
12
## Version [v1.9.0] - 2025-03-17
7
13
8
14
### Added
@@ -1924,6 +1930,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1924
1930
[#2394]: https://github.com/JuliaDocs/Documenter.jl/issues/2394
1925
1931
[#2406]: https://github.com/JuliaDocs/Documenter.jl/issues/2406
1926
1932
[#2408]: https://github.com/JuliaDocs/Documenter.jl/issues/2408
1933
+ [#2410]: https://github.com/JuliaDocs/Documenter.jl/issues/2410
1927
1934
[#2414]: https://github.com/JuliaDocs/Documenter.jl/issues/2414
1928
1935
[#2415]: https://github.com/JuliaDocs/Documenter.jl/issues/2415
1929
1936
[#2424]: https://github.com/JuliaDocs/Documenter.jl/issues/2424
Original file line number Diff line number Diff line change @@ -463,6 +463,9 @@ function runSearchMainCode() {
463
463
} ;
464
464
465
465
$ ( document ) . on ( "click" , ".search-filter" , function ( ) {
466
+ let search_input = $ ( ".documenter-search-input" ) ;
467
+ let cursor_position = search_input [ 0 ] . selectionStart ;
468
+
466
469
if ( $ ( this ) . hasClass ( "search-filter-selected" ) ) {
467
470
selected_filter = "" ;
468
471
} else {
@@ -471,6 +474,9 @@ function runSearchMainCode() {
471
474
472
475
// This updates search results and toggles classes for UI:
473
476
update_search ( ) ;
477
+
478
+ search_input . focus ( ) ;
479
+ search_input . setSelectionRange ( cursor_position , cursor_position ) ;
474
480
} ) ;
475
481
476
482
/**
You can’t perform that action at this time.
0 commit comments