mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-18 19:12:16 +00:00
Merge "Show keyboard shortcuts in button tooltips"
This commit is contained in:
commit
d52f6334ea
|
@ -124,7 +124,10 @@
|
||||||
"discussiontools-replywidget-reply",
|
"discussiontools-replywidget-reply",
|
||||||
"discussiontools-replywidget-summary",
|
"discussiontools-replywidget-summary",
|
||||||
"discussiontools-replywidget-terms-click",
|
"discussiontools-replywidget-terms-click",
|
||||||
"discussiontools-replywidget-transcluded"
|
"discussiontools-replywidget-transcluded",
|
||||||
|
"visualeditor-key-ctrl",
|
||||||
|
"visualeditor-key-enter",
|
||||||
|
"visualeditor-key-escape"
|
||||||
],
|
],
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"oojs-ui-widgets",
|
"oojs-ui-widgets",
|
||||||
|
|
|
@ -53,12 +53,25 @@ function ReplyWidget( commentController, comment, pageName, oldId, config ) {
|
||||||
this.replyBodyWidget = this.createReplyBodyWidget( inputConfig );
|
this.replyBodyWidget = this.createReplyBodyWidget( inputConfig );
|
||||||
this.replyButton = new OO.ui.ButtonWidget( {
|
this.replyButton = new OO.ui.ButtonWidget( {
|
||||||
flags: [ 'primary', 'progressive' ],
|
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( {
|
this.cancelButton = new OO.ui.ButtonWidget( {
|
||||||
flags: [ 'destructive' ],
|
flags: [ 'destructive' ],
|
||||||
label: mw.msg( 'discussiontools-replywidget-cancel' ),
|
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( {
|
this.modeTabSelect = new OO.ui.TabSelectWidget( {
|
||||||
|
|
Loading…
Reference in a new issue