mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-24 21:25:45 +00:00
update for duplicative entry (#6356)
This commit is contained in:
@@ -88,7 +88,9 @@ const Modal = ({
|
||||
return closeModal({ type: 'esc' });
|
||||
}
|
||||
case ENTER_KEY_CODE: {
|
||||
if (!shiftKey && !ctrlKey && !altKey && !metaKey && handleConfirm) {
|
||||
// Skip if a submit button is focused - let native button click handle it to avoid double-fire
|
||||
const isSubmitButton = event.target?.type === 'submit';
|
||||
if (!shiftKey && !ctrlKey && !altKey && !metaKey && handleConfirm && !isSubmitButton) {
|
||||
return handleConfirm();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user