Chore: Cleanup attachment handling for Facebook & Whatsapp (#1051)
* Chore: Enable file upload for facebook messenger * Chore: Fix attachments * Chore: Fix Specs * Fix ReplyBox file attachment logic * Set default value for message Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
parent
196741d975
commit
a18d54b706
14 changed files with 212 additions and 108 deletions
11
app/javascript/shared/helpers/KeyboardHelpers.js
Normal file
11
app/javascript/shared/helpers/KeyboardHelpers.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
export const isEnter = e => {
|
||||
return e.keyCode === 13;
|
||||
};
|
||||
|
||||
export const isEscape = e => {
|
||||
return e.keyCode === 27;
|
||||
};
|
||||
|
||||
export const hasPressedShift = e => {
|
||||
return e.shiftKey;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue