From df178baed61d0114ac8a557bce991966f2f07b70 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Sat, 24 Feb 2024 18:58:51 -0800 Subject: [PATCH] Don't build plugins --- .github/workflows/artifacts.yml | 2 -- src-web/components/DialogContext.tsx | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 12790eb9..8fd2bce3 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -46,8 +46,6 @@ jobs: sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf - name: Install dependencies run: npm ci - - name: Build plugins - run: npm run build:plugins - name: Run tests run: npm test # Pin dev version to get non-default targets diff --git a/src-web/components/DialogContext.tsx b/src-web/components/DialogContext.tsx index d03086ee..d52585be 100644 --- a/src-web/components/DialogContext.tsx +++ b/src-web/components/DialogContext.tsx @@ -1,4 +1,5 @@ import React, { createContext, useContext, useMemo, useState } from 'react'; +import { useHotKey } from '../hooks/useHotKey'; import { trackEvent } from '../lib/analytics'; import type { DialogProps } from './core/Dialog'; import { Dialog } from './core/Dialog'; @@ -59,6 +60,7 @@ export const DialogProvider = ({ children }: { children: React.ReactNode }) => { function DialogInstance({ id, render, ...props }: DialogEntry) { const { actions } = useContext(DialogContext); const children = render({ hide: () => actions.hide(id) }); + useHotKey('popup.close', () => actions.hide(id)); return ( actions.hide(id)} {...props}> {children}