Skip to content

Commit 763460c

Browse files
Fixed char access.
1 parent 8d0de4d commit 763460c

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
@@ -1206,7 +1206,7 @@ function splitAccesskey(val) {
12061206
keys = [];
12071207

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

0 commit comments

Comments
 (0)