keymaster icon indicating copy to clipboard operation
keymaster copied to clipboard

Cannot assign to "?"

Open jamesarosen opened this issue 13 years ago • 3 comments

The only way to assign to "?" is to assign to "shift+/", but that isn't "?" on all keyboards. It seems that a keypress event with charCode 63 is the only way to reliably detect "?" across keyboards.

jamesarosen avatar Sep 26 '11 23:09 jamesarosen

I am stuck on this too, can you please give an example of how to use charCode et detect "?"

purplefish32 avatar Jan 18 '12 09:01 purplefish32

The following jQuery works for detecting ?:

$(document.body).on('keypress', function(e) {
  if (tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') return;
  if (e.charCode === 63) {
    // handle the ? keypress
    return false;
  }
});

Of course, that doesn't integrate with keymaster at all. That's the point of this issue.

jamesarosen avatar Jan 19 '12 01:01 jamesarosen

I too would love to have a way to process "?" without having to resort to "shift+/"

bbeck avatar Mar 23 '12 01:03 bbeck