Skip to content

Commit

Permalink
Merge pull request #270 from unigraph-dev/bugfix/capture-omnibar-hotkey
Browse files Browse the repository at this point in the history
Bugfix/capture omnibar hotkey
  • Loading branch information
thesophiaxu committed Dec 19, 2021
2 parents 2833eea + 39a0a36 commit 1ce5f4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/unigraph-dev-explorer/src/pages/SearchOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ export const SearchOverlayPopover = ({open, setClose, noShadow}: any) => {
document.onkeydown = function(evt) {
evt = evt || window.event;
if ((evt.ctrlKey || evt.metaKey) && evt.key === 'e' && !isElectron()) {
evt.preventDefault();
if (open === undefined) setSearchEnabled(!searchEnabled);
}
if ((searchEnabled) && evt.key === 'Escape') {
Expand Down

0 comments on commit 1ce5f4e

Please sign in to comment.