Skip to content

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

Makes shortcuts active when chat is opened but not focused.

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