Closed siddharth-sable closed 2 years ago
?
more context: it opens up google bar instead of genics search bar on browsers like brave, chrome and edge on windows.
Probably changing Ctrl
/ Command
+ K
short cut to Ctrl
/ Command
+ /
should work. Otherwise people have to disable google search bar shortcut from settings.
@gouravkhunger
document.addEventListener("keydown", function (e) {
if (e.keyCode === 75 && (e.ctrlKey || e.metaKey)) {
e.preventDefault();
showSearch();
}
if (e.keyCode === 27) {
hideSearch();
}
});
did u test it?
@shockz09 i have used it before and it works for most of browsers but if you want it support on every browser u should use jquery
cool
Hey @AnupT16, Thanks for the idea! I'll test the e.preventDefault()
thing on windows today (macOS and Linux didn't have such an issue that's why it went unnoticed)
Fixed in #36 😄 Thank you everyone!
Pressing Ctrl+K should bring up the search bar, it doesn't.
Change the Key to appropriate one, so that the search bar works as desired.