mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 427412: prevent default beeping action for Cmd+Enter on Mac in autocomplete widgets, r=enndeakin, a=damon
This commit is contained in:
parent
2688927694
commit
9b6dfd3011
@ -460,6 +460,11 @@
|
||||
cancel = this.mController.handleEscape();
|
||||
break;
|
||||
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;
|
||||
cancel = this.mController.handleEnter(false);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user