medialize/jQuery-contextMenu — Issue #10: Duplicate case 9 in switch 
Author: jsm174
Created: 2011-11-15 18:19:54+00:00
State: open

Hello. Eclipse javascript validator complains with an error for contextMenu and a duplicate case 9. I just ran contextMenu through lint:

302 switch (e.keyCode) {
303 case 9:
304 case 38: // up
305 // if keyCode is [38 (up)] or [9 (tab) with shift]
306 if (opt.isInput) {
307 if (e.keyCode == 9 && e.shiftKey) {

.
.
.
319 return;
320 }
321
322 case 9: // tab
======================^
lint warning: duplicate case in switch statements
323 case 40: // down
324 if (opt.isInput) {
325 if (e.keyCode == 9) {

Thanks for a great plugin!