1
0
mirror of synced 2025-02-09 16:49:24 +03:00

ignore modifier keys when enter is pressed. fixes #836

This commit is contained in:
Igor Vaynberg 2013-02-09 23:55:34 -08:00
parent acdbb02498
commit b3a0c3269a

View File

@ -2076,8 +2076,12 @@ the specific language governing permissions and limitations under the Apache Lic
return;
}
if (this.opts.openOnEnter === false && e.which === KEY.ENTER) {
return;
if (e.which === KEY.ENTER) {
if (this.opts.openOnEnter === false) {
return;
} else if (e.altKey || e.ctrlKey || e.shiftKey || e.metaKey) {
return;
}
}
this.open();