mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 18:32:30 +01:00
code review for https://github.com/uBlockOrigin/uBlock-issues/issues/106
This commit is contained in:
parent
20c95455e4
commit
fbaf8b4e2f
@ -146,19 +146,20 @@
|
||||
}
|
||||
return;
|
||||
}
|
||||
/* status === 1 */
|
||||
let key = validStatus1Codes.get(ev.code);
|
||||
if ( key === 'Shift' ) {
|
||||
after.add('Shift');
|
||||
input.value = Array.from(after).join('+');
|
||||
return;
|
||||
}
|
||||
if ( key !== undefined ) {
|
||||
after.add(key);
|
||||
updateCapturedShortcut();
|
||||
status = 2;
|
||||
input.blur();
|
||||
return;
|
||||
if ( status === 1 ) {
|
||||
let key = validStatus1Codes.get(ev.code);
|
||||
if ( key === 'Shift' ) {
|
||||
after.add('Shift');
|
||||
updateCapturedShortcut();
|
||||
return;
|
||||
}
|
||||
if ( key !== undefined ) {
|
||||
after.add(key);
|
||||
updateCapturedShortcut();
|
||||
status = 2;
|
||||
input.blur();
|
||||
return;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user