Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fixes bug with shortcuts enabled when the user is writing in a text field.

fod82274815078
diff --git a/keyboard_shortcut.js b/keyboard_shortcut.js
index b9d6acdcd6..cffc3fc9e8 100644
--- a/keyboard_shortcut.js
+++ b/keyboard_shortcut.js
@@ -32,8 +32,7 @@ var KeyboardShortcut = (function(my) {
};
window.onkeyup = function(e) {
- if($("#chatspace").css("display") === "none" ||
- !($("#usermsg").is(":focus") || $("#nickinput").is(":focus"))) {
+ if(!($(":focus").is("input[type=text]") || $(":focus").is("textarea"))) {
var keycode = e.which;
if (typeof shortcuts[keycode] === "object") {
shortcuts[keycode].function();