diff --git a/extension.json b/extension.json index 78479e8a8..ad54e1917 100644 --- a/extension.json +++ b/extension.json @@ -124,7 +124,10 @@ "discussiontools-replywidget-reply", "discussiontools-replywidget-summary", "discussiontools-replywidget-terms-click", - "discussiontools-replywidget-transcluded" + "discussiontools-replywidget-transcluded", + "visualeditor-key-ctrl", + "visualeditor-key-enter", + "visualeditor-key-escape" ], "dependencies": [ "oojs-ui-widgets", diff --git a/modules/dt.ui.ReplyWidget.js b/modules/dt.ui.ReplyWidget.js index 4c0096065..5285a9ec9 100644 --- a/modules/dt.ui.ReplyWidget.js +++ b/modules/dt.ui.ReplyWidget.js @@ -53,12 +53,25 @@ function ReplyWidget( commentController, comment, pageName, oldId, config ) { this.replyBodyWidget = this.createReplyBodyWidget( inputConfig ); this.replyButton = new OO.ui.ButtonWidget( { flags: [ 'primary', 'progressive' ], - label: mw.msg( 'discussiontools-replywidget-reply' ) + label: mw.msg( 'discussiontools-replywidget-reply' ), + title: mw.msg( 'discussiontools-replywidget-reply' ) + ' ' + + // TODO: Use VE keyboard shortcut generating code + ( $.client.profile().platform === 'mac' ? + '⌘⏎' : + mw.msg( 'visualeditor-key-ctrl' ) + '+' + mw.msg( 'visualeditor-key-enter' ) + ) + } ); this.cancelButton = new OO.ui.ButtonWidget( { flags: [ 'destructive' ], label: mw.msg( 'discussiontools-replywidget-cancel' ), - framed: false + framed: false, + title: mw.msg( 'discussiontools-replywidget-cancel' ) + ' ' + + // TODO: Use VE keyboard shortcut generating code + ( $.client.profile().platform === 'mac' ? + '⎋' : + mw.msg( 'visualeditor-key-escape' ) + ) } ); this.modeTabSelect = new OO.ui.TabSelectWidget( {