Skip to content

Commit ca24fce

Browse files
update search ids (#23)
Co-authored-by: chdeskur <chdeskur@gmail.com>
1 parent 2d5ff72 commit ca24fce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

fern/assets/inkeep.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
const searchButtonContainerIds = [
2+
"fern-search-bar",
3+
"fern-search-button",
4+
];
5+
16
// Define the base settings
27
const inkeepSettings = {
38
isOpen: true,
@@ -31,11 +36,6 @@ const inkeepSettings = {
3136

3237
// Function to initialize search containers
3338
function initializeSearchContainers() {
34-
const searchButtonContainerIds = [
35-
"search-bar-entry",
36-
"search-bar-entry-mobile",
37-
];
38-
3939
// Clone and replace search buttons to remove existing listeners
4040
// Only process elements that exist
4141
const clonedSearchButtonContainers = searchButtonContainerIds
@@ -107,7 +107,7 @@ function initializeInkeep() {
107107
(event) => {
108108
if (
109109
(event.metaKey || event.ctrlKey) &&
110-
(event.key === "k" || event.key === "K")
110+
(event.key === "/")
111111
) {
112112
event.stopPropagation();
113113
inkeepSearchModal.render({ isOpen: true });

0 commit comments

Comments
 (0)