Showing 3 of 3 total issues
Function _handleKeyPress
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_handleKeyPress(e) {
let key = e.key || KEYCODE_TO_KEY_MAP[e.keyCode];
const listeners = this._listenersForKey(key);
if (key === '.') {
Avoid too many return
statements within this function. Open
Open
if (e.altKey && !options.requireAlt) { return; }
Avoid too many return
statements within this function. Open
Open
if (e.shiftKey && !options.requireShift) { return; }