Skip to content

Commit

Permalink
release: Bump version1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Revathyvenugopal162 committed Oct 11, 2024
1 parent e88a49d commit 0944df0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions doc/changelog.d/542.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: add default `enter` for search
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
[project]
# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections
name = "ansys-sphinx-theme"
version = "1.1.2"
version = "1.1.3"
description = "A theme devised by ANSYS, Inc. for Sphinx documentation."
readme = "README.rst"
requires-python = ">=3.10,<4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,10 @@ require(["fuse"], function (Fuse) {

switch (event.key) {
case "Enter":
event.preventDefault(); // Prevent form submission
if (currentIndex >= 0 && currentIndex < resultItems.length) {
event.preventDefault(); // Prevent default enter action
const href = resultItems[currentIndex].getAttribute("data-href");
navigateToHref(href);
} else if (resultItems.length > 0) {
const href = resultItems[0].getAttribute("data-href");
navigateToHref(href);
}
break;

Expand Down

0 comments on commit 0944df0

Please sign in to comment.