ignore modifier keys when enter is pressed. fixes #836
This commit is contained in:
parent
acdbb02498
commit
b3a0c3269a
@ -2076,8 +2076,12 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.opts.openOnEnter === false && e.which === KEY.ENTER) {
|
if (e.which === KEY.ENTER) {
|
||||||
return;
|
if (this.opts.openOnEnter === false) {
|
||||||
|
return;
|
||||||
|
} else if (e.altKey || e.ctrlKey || e.shiftKey || e.metaKey) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.open();
|
this.open();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user