Skip to content

Commit

Permalink
ask modal now performs the confirm action when initially focused and …
Browse files Browse the repository at this point in the history
…Enter is pressed (#8186)
  • Loading branch information
gatzjames authored Nov 21, 2024
1 parent ff88cbd commit d7240ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/insomnia/src/ui/components/modals/ask-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export const AskModal = forwardRef<AskModalHandle, ModalProps>((_, ref) => {
</button>
<button
className="btn"
autoFocus
style={{ color: `var(--color-font-${color})`, backgroundColor: `var(--color-${color})` }}
onClick={() => {
modalRef.current?.hide();
Expand Down

0 comments on commit d7240ee

Please sign in to comment.