Special keys #23

Closed
rohm1 opened this Issue Nov 22, 2013 · 1 comment

Projects

None yet

2 participants

rohm1 commented Nov 22, 2013

The special keys list should be extended, it is not possible to go to the next form field by pressing tab, or submit the form by pressing enter. One more possible extention is also to support F5.

utils.isSpecialKey = function (k) {
  var codes = {
    '9' : 'tab',
    '13': 'enter',
    '35': 'end',
    '36': 'home',
    '37': 'leftarrow',
    '38': 'uparrow',
    '39': 'rightarrow',
    '40': 'downarrow',
    '116': 'F5',
  };
  // If del or special key
  return codes[k];
};

cheers

Owner

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment