Properly handle null.
This commit is contained in:
1 parent
32bea8c30e
commit
a75b651422
1 file changed
+4
@@ -291,6 +291,10 @@ Guacamole.Keyboard = function(element) {
|
||||
* http://www.w3.org/TR/DOM-Level-3-Events/#events-KeyboardEvent
|
||||
*/
|
||||
function get_keysym(keysyms, location) {
|
||||
|
||||
if (!keysyms)
|
||||
return null;
|
||||
|
||||
return keysyms[location] || keysyms[0];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user