🐛 Don't block unused keys when keyboard control is active (#4483)
Allows to still use keys such as F5 for refresh, etc. while keyboard control is open, rather than swallowing every possible key combination.
This commit is contained in:
1 parent
1a5de41a0f
commit
cafd480642
1 file changed
+4
-1
@@ -728,9 +728,12 @@ $(function () {
|
||||
// z home
|
||||
button = $("#control-zhome");
|
||||
break;
|
||||
default:
|
||||
case 9: // prevent tab key from removing focus from webcam
|
||||
event.preventDefault();
|
||||
return false;
|
||||
default:
|
||||
// don't prevent other keys
|
||||
return true;
|
||||
}
|
||||
|
||||
if (button === undefined) {
|
||||
|
||||
Reference in new issue
Block a user