Fix keyboard shortcuts conflict between bible reader and AI chat
- Added data-floating-chat attribute to chat component for easy detection - Updated bible reader keyboard event handler to check if chat is open - Prevent shortcuts from triggering when user is typing in input fields - Check for dialogs, modals, and the floating chat before processing shortcuts
This commit is contained in:
@@ -192,6 +192,7 @@ export default function FloatingChat() {
|
||||
<Slide direction="up" in={isOpen} unmountOnExit>
|
||||
<Paper
|
||||
elevation={8}
|
||||
data-floating-chat="true"
|
||||
sx={{
|
||||
position: 'fixed',
|
||||
bottom: 0,
|
||||
|
||||
Reference in New Issue
Block a user