Merge "ReplyWidget: don't show the enter hint if the reply button is disabled"

This commit is contained in:
jenkins-bot 2023-11-01 17:58:36 +00:00 committed by Gerrit Code Review
commit ef28fbfc84

View file

@ -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;