mirror of
https://github.com/moghtech/komodo.git
synced 2025-12-05 19:17:36 -06:00
[PR #750] [MERGED] Add Enter Key Support for Dialog Confirmations #776
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/750
Author: @MP-Tool
Created: 8/21/2025
Status: ✅ Merged
Merged: 8/23/2025
Merged by: @mbecker20
Base:
1.19.1← Head:ux/prompt-hotkeys📝 Commits (10+)
b7dabe2start 1.19.1ac2786fdeploy 1.19.1-dev-15307ebfMerge branch 'moghtech:1.19.1' into 1.19.1c1b9f8fMerge branch 'moghtech:1.19.1' into 1.19.1607abdfImplement usePromptHotkeys for enhanced dialog interactions and UX8f8bba7Refactor usePromptHotkeys to enhance confirm button detection and improve UX1947f8cRemove forceConfirmDialog prop from ActionWithDialog and related logic for cleaner implementationaacc32aAdd dialog descriptions to ConfirmUpdate and ActionWithDialog for better clarity and resolve warnings56b859ffixd5ade95Restore forceConfirmDialog prop to ActionWithDialog for enhanced confirmation handling📊 Changes
3 files changed (+146 additions, -25 deletions)
View changed files
📝
frontend/src/components/config/util.tsx(+23 -5)📝
frontend/src/components/util.tsx(+46 -20)📝
frontend/src/lib/hooks.ts(+77 -0)📄 Description
Add Enter Key Support for Dialog Confirmations
What this PR adds:
New Hook:
usePromptHotkeysEnhanced Components:
Enterkey support alongside existingCtrl+EnterSafety Features:
Technical Implementation:
data-confirm-buttonattributes for button detectionCtrl+Enter, click handlers, etc.)Files Changed:
frontend/src/lib/hooks.ts: NewusePromptHotkeyshookfrontend/src/components/util.tsx: Enhanced ActionWithDialog and ConfirmButtonfrontend/src/components/config/util.tsx: Added Enter support to ConfirmUpdatefrontend/src/components/resources/common.tsx: Cleanup of unused codeThis is a simple quality-of-life improvement that adds expected Enter-to-confirm behavior to dialogs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.