mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
Merge "ReplyWidget: don't show the enter hint if the reply button is disabled"
This commit is contained in:
commit
ef28fbfc84
|
@ -759,7 +759,7 @@ ReplyWidget.prototype.onKeyDown = function ( e ) {
|
|||
if ( e.ctrlKey || e.metaKey ) {
|
||||
this.onReplyClick();
|
||||
return false;
|
||||
} else if ( e.target.tagName === 'INPUT' && !this.$bodyWrapper[ 0 ].contains( e.target ) ) {
|
||||
} else if ( e.target.tagName === 'INPUT' && !this.$bodyWrapper[ 0 ].contains( e.target ) && !this.replyButton.isDisabled() ) {
|
||||
// The body wrapper can contain VE UI widgets that you may need to press enter within
|
||||
this.showEnterWarning();
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue