Skip to content

Commit 9efce71

Browse files
committed
Merge branch 'abramobagnara-master'
closes swisnl#227
2 parents edef90d + 7d78763 commit 9efce71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.contextMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ function splitAccesskey(val) {
12141214
keys = [];
12151215

12161216
for (var i=0, k; k = t[i]; i++) {
1217-
k = k[0].toUpperCase(); // first character only
1217+
k = k.charAt(0).toUpperCase(); // first character only
12181218
// theoretically non-accessible characters should be ignored, but different systems, different keyboard layouts, ... screw it.
12191219
// a map to look up already used access keys would be nice
12201220
keys.push(k);

0 commit comments

Comments
 (0)