From d668244f9bedc03f12cd50aa79847145e03aff36 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 6 Feb 2024 23:44:10 -0800 Subject: [PATCH] Change hotkey handling to capture phase --- src-web/components/GrpcEditor.tsx | 3 +-- src-web/components/GrpcProtoSelection.tsx | 4 ++-- src-web/hooks/useHotKey.ts | 8 ++++---- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src-web/components/GrpcEditor.tsx b/src-web/components/GrpcEditor.tsx index c6f45788..12964bf5 100644 --- a/src-web/components/GrpcEditor.tsx +++ b/src-web/components/GrpcEditor.tsx @@ -91,7 +91,6 @@ export function GrpcEditor({ }, [alert, services, request.method, request.service]); const reflectionUnavailable = reflectionError?.match(/unimplemented/i); - const reflectionSuccess = !reflectionError && services != null && request.protoFiles.length === 0; reflectionError = reflectionUnavailable ? undefined : reflectionError; return ( @@ -105,7 +104,7 @@ export function GrpcEditor({ placeholder="..." ref={editorViewRef} actions={[ -
+