chore: Clean up

This commit is contained in:
iamsivin
2024-11-19 22:03:54 +05:30
parent ca46ed9bca
commit 1982cb159c
4 changed files with 95 additions and 82 deletions
@@ -48,6 +48,10 @@ const props = defineProps({
type: Boolean,
default: false,
},
isDropdownActive: {
type: Boolean,
default: false,
},
});
const emit = defineEmits([
@@ -123,7 +127,8 @@ const { onFileUpload } = useFileUpload({
const keyboardEvents = {
Enter: {
action: () => !props.isWhatsappInbox && emit('sendMessage'),
action: () =>
!props.isWhatsappInbox && !props.isDropdownActive && emit('sendMessage'),
},
};
useKeyboardEvents(keyboardEvents);