mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
Merge pull request #782 from ih8sun/feature/improve-macos-searchmenu
🛠️Adds native macOS shortcut support for opening the search menu
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
};
|
||||
|
||||
const handleKeydown = (event: KeyboardEvent) => {
|
||||
if (event.ctrlKey && event.key === "k") {
|
||||
if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === "k") {
|
||||
event.preventDefault();
|
||||
inputElement?.focus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user