File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change
1
+ const searchButtonContainerIds = [
2
+ "fern-search-bar" ,
3
+ "fern-search-button" ,
4
+ ] ;
5
+
1
6
// Define the base settings
2
7
const inkeepSettings = {
3
8
isOpen : true ,
@@ -31,11 +36,6 @@ const inkeepSettings = {
31
36
32
37
// Function to initialize search containers
33
38
function initializeSearchContainers ( ) {
34
- const searchButtonContainerIds = [
35
- "search-bar-entry" ,
36
- "search-bar-entry-mobile" ,
37
- ] ;
38
-
39
39
// Clone and replace search buttons to remove existing listeners
40
40
// Only process elements that exist
41
41
const clonedSearchButtonContainers = searchButtonContainerIds
@@ -107,7 +107,7 @@ function initializeInkeep() {
107
107
( event ) => {
108
108
if (
109
109
( event . metaKey || event . ctrlKey ) &&
110
- ( event . key === "k" || event . key === "K ")
110
+ ( event . key === "/ " )
111
111
) {
112
112
event . stopPropagation ( ) ;
113
113
inkeepSearchModal . render ( { isOpen : true } ) ;
You can’t perform that action at this time.
0 commit comments