File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export default function SearchBar() {
1818
1919 const handleKeyDown = useCallback (
2020 ( event ) => {
21- if ( event . metaKey && event . key === "k" ) {
21+ if ( ( event . metaKey || event . ctrlKey ) && event . key === "k" ) {
2222 event . preventDefault ( ) ;
2323 dialog . current ?. showModal ( ) ;
2424 }
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export default function Search() {
1212 < button
1313 className = "inline-flex items-center rounded-md bg-gray-800 px-2 py-1.5 text-sm font-medium text-gray-400 hover:bg-gray-700"
1414 type = "button"
15- aria-label = " Search (shortcut: {shortcut}K)"
15+ aria-label = { ` Search (shortcut: $ {shortcut } K)` }
1616 onClick = { ( ) => dialog . current ?. showModal ( ) }
1717 >
1818 < span className = "sr-only md:hidden" > Open search</ span >
You can’t perform that action at this time.
0 commit comments