@@ -346,7 +346,7 @@ export const BFormSpinbutton = /*#__PURE__*/ Vue.extend({
346
346
const hasValue = ! isNull ( value )
347
347
const formatter = isFunction ( this . formatterFn ) ? this . formatterFn : this . defaultFormatter
348
348
349
- const makeButton = ( stepper , label , IconCmp , keyRef ) => {
349
+ const makeButton = ( stepper , label , IconCmp , keyRef , shortcut ) => {
350
350
const $icon = h ( IconCmp , {
351
351
props : { scale : this . hasFocus ? 1.5 : 1.25 } ,
352
352
attrs : { 'aria-hidden' : 'true' }
@@ -368,7 +368,8 @@ export const BFormSpinbutton = /*#__PURE__*/ Vue.extend({
368
368
type : 'button' ,
369
369
disabled : isDisabled || isReadonly ,
370
370
'aria-controls' : idSpin ,
371
- 'aria-label' : label || null
371
+ 'aria-label' : label || null ,
372
+ 'aria-shortcutkeys' : shortcut || null
372
373
} ,
373
374
on : {
374
375
mousedown : handler ,
@@ -378,8 +379,8 @@ export const BFormSpinbutton = /*#__PURE__*/ Vue.extend({
378
379
[ h ( 'div' , { } , [ $icon ] ) ]
379
380
)
380
381
}
381
- const $increment = makeButton ( this . stepUp , this . labelIncrement , BIconPlus , 'inc' )
382
- const $decrement = makeButton ( this . stepDown , this . labelDecrement , BIconDash , 'dec' )
382
+ const $increment = makeButton ( this . stepUp , this . labelIncrement , BIconPlus , 'inc' . 'ArrowUp' )
383
+ const $decrement = makeButton ( this . stepDown , this . labelDecrement , BIconDash , 'dec' , 'ArrowDown' )
383
384
384
385
let $hidden = h ( )
385
386
if ( this . name ) {
0 commit comments