Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This pull request introduces enhancements to several modal components in the frontend web application by adding a new `useKeyDown` hook to handle 'Enter' key submissions. The changes ensure a more consistent user experience across different modals by allowing form submissions via the 'Enter' key. Key changes include: ### Enhancements to modal components: * [`frontend/webapp/containers/main/actions/action-modal/index.tsx`](diffhunk://#diff-91a7e6637c5f6642f68e8b0c5d326cda0275e9d6835521b94c686a13c581900eR3): Added `useKeyDown` hook to handle 'Enter' key submissions for the `ActionModal` component. [[1]](diffhunk://#diff-91a7e6637c5f6642f68e8b0c5d326cda0275e9d6835521b94c686a13c581900eR3) [[2]](diffhunk://#diff-91a7e6637c5f6642f68e8b0c5d326cda0275e9d6835521b94c686a13c581900eL15-R20) [[3]](diffhunk://#diff-91a7e6637c5f6642f68e8b0c5d326cda0275e9d6835521b94c686a13c581900eL36) * [`frontend/webapp/containers/main/destinations/destination-modal/index.tsx`](diffhunk://#diff-abafe53761371d28f6f0a3ad30eaa63cf5232f7fd16ac6a6bf3c266e77439c99L9-R10): Integrated `useKeyDown` hook for the `DestinationModal` component to enable 'Enter' key submissions. [[1]](diffhunk://#diff-abafe53761371d28f6f0a3ad30eaa63cf5232f7fd16ac6a6bf3c266e77439c99L9-R10) [[2]](diffhunk://#diff-abafe53761371d28f6f0a3ad30eaa63cf5232f7fd16ac6a6bf3c266e77439c99R33-L36) * [`frontend/webapp/containers/main/instrumentation-rules/rule-modal/index.tsx`](diffhunk://#diff-183ce38153926d5ca73d74249c98e035a00de4a376645a10bc098c181636c501L6-R6): Implemented `useKeyDown` hook for the `RuleModal` component to manage 'Enter' key submissions. [[1]](diffhunk://#diff-183ce38153926d5ca73d74249c98e035a00de4a376645a10bc098c181636c501L6-R6) [[2]](diffhunk://#diff-183ce38153926d5ca73d74249c98e035a00de4a376645a10bc098c181636c501L15-R19) [[3]](diffhunk://#diff-183ce38153926d5ca73d74249c98e035a00de4a376645a10bc098c181636c501L35) * [`frontend/webapp/containers/main/overview/overview-drawer/index.tsx`](diffhunk://#diff-732721edf7c32d883ffefa52d6e43339c6ee328c88c3cb5f0d87f6760347b599L7-R9): Applied `useKeyDown` hook to handle 'Enter' key actions in the `OverviewDrawer` component. [[1]](diffhunk://#diff-732721edf7c32d883ffefa52d6e43339c6ee328c88c3cb5f0d87f6760347b599L7-R9) [[2]](diffhunk://#diff-732721edf7c32d883ffefa52d6e43339c6ee328c88c3cb5f0d87f6760347b599R38-L41) * [`frontend/webapp/containers/main/sources/choose-sources/choose-source-modal/index.tsx`](diffhunk://#diff-2de6982f9ae22619e89eda6e002fd17bb887b0625bbd4281c7a778c352642979L3-R17): Added `useKeyDown` hook for 'Enter' key submissions in the `AddSourceModal` component. [[1]](diffhunk://#diff-2de6982f9ae22619e89eda6e002fd17bb887b0625bbd4281c7a778c352642979L3-R17) [[2]](diffhunk://#diff-2de6982f9ae22619e89eda6e002fd17bb887b0625bbd4281c7a778c352642979L31-R33)
- Loading branch information