From d9361f971be9fa6b22740062a42cf5634ed5be2c Mon Sep 17 00:00:00 2001 From: Brian Lambert Date: Sat, 30 Mar 2024 15:19:26 -0700 Subject: [PATCH] Updates so that pressing enter tries to apply a row filter --- .../positronModalDialog/positronModalDialog.tsx | 2 +- .../positronModalPopup/positronModalPopup.tsx | 8 ++++++++ .../addEditRowFilterModalPopup.tsx | 7 ++++--- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/vs/workbench/browser/positronComponents/positronModalDialog/positronModalDialog.tsx b/src/vs/workbench/browser/positronComponents/positronModalDialog/positronModalDialog.tsx index df8cefcfe11..4231a62c1fb 100644 --- a/src/vs/workbench/browser/positronComponents/positronModalDialog/positronModalDialog.tsx +++ b/src/vs/workbench/browser/positronComponents/positronModalDialog/positronModalDialog.tsx @@ -110,7 +110,7 @@ export const PositronModalDialog = (props: PropsWithChildren void; } /** @@ -195,6 +196,13 @@ export const PositronModalPopup = (props: PropsWithChildren { + const applyRowFilter = () => { // Ensure that the user has selected a column schema. if (!selectedColumnSchema) { setErrorText(localize( @@ -546,6 +546,7 @@ export const AddEditRowFilterModalPopup = (props: AddEditRowFilterModalPopupProp width={275} height={'min-content'} keyboardNavigation='dialog' + onAccept={applyRowFilter} >
{localize( 'positron.addEditRowFilter.applyFilter',