keymaster
keymaster copied to clipboard
Cannot assign to "?"
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.
I am stuck on this too, can you please give an example of how to use charCode et detect "?"
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.
I too would love to have a way to process "?" without having to resort to "shift+/"