mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-04-22 21:05:46 +00:00
improve mission selector
This commit is contained in:
parent
af17b43584
commit
10b4a65a87
18 changed files with 594 additions and 183 deletions
|
|
@ -183,6 +183,10 @@ export function ObserverControls() {
|
|||
// Don't let KeyboardControls handle stuff when metaKey is held.
|
||||
useEffect(() => {
|
||||
const handleKey = (e: KeyboardEvent) => {
|
||||
// Let Cmd/Ctrl+K pass through for search focus.
|
||||
if ((e.metaKey || e.ctrlKey) && e.key === "k") {
|
||||
return;
|
||||
}
|
||||
if (e.metaKey) {
|
||||
e.stopImmediatePropagation();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue