зеркало из https://github.com/mozilla/pjs.git
Bug 427412: prevent default beeping action for Cmd+Enter on Mac in autocomplete widgets, r=enndeakin, a=damon
This commit is contained in:
Родитель
a0b0edf4e7
Коммит
8cc7357a88
|
@ -460,6 +460,11 @@
|
||||||
cancel = this.mController.handleEscape();
|
cancel = this.mController.handleEscape();
|
||||||
break;
|
break;
|
||||||
case KeyEvent.DOM_VK_RETURN:
|
case KeyEvent.DOM_VK_RETURN:
|
||||||
|
#ifdef XP_MACOSX
|
||||||
|
// Prevent the default action, since it will beep on Mac
|
||||||
|
if (aEvent.metaKey)
|
||||||
|
aEvent.preventDefault();
|
||||||
|
#endif
|
||||||
this.mEnterEvent = aEvent;
|
this.mEnterEvent = aEvent;
|
||||||
cancel = this.mController.handleEnter(false);
|
cancel = this.mController.handleEnter(false);
|
||||||
break;
|
break;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче