add keyboard shortcut to add annotation button tooltip
This commit is contained in:
parent
a79a4e4776
commit
5748c33ba4
2 changed files with 4 additions and 1 deletions
|
@ -42,6 +42,7 @@ Ox.AnnotationFolder = function(options, self) {
|
||||||
'in': 0,
|
'in': 0,
|
||||||
item: '',
|
item: '',
|
||||||
items: [],
|
items: [],
|
||||||
|
keyboard: '',
|
||||||
out: 0,
|
out: 0,
|
||||||
position: 0,
|
position: 0,
|
||||||
range: 'all',
|
range: 'all',
|
||||||
|
@ -122,7 +123,8 @@ Ox.AnnotationFolder = function(options, self) {
|
||||||
id: 'add',
|
id: 'add',
|
||||||
style: 'symbol',
|
style: 'symbol',
|
||||||
title: 'add',
|
title: 'add',
|
||||||
tooltip: Ox._('Add {0}', [self.options.item]),
|
tooltip: Ox._('Add {0}', [self.options.item])
|
||||||
|
+ (self.options.keyboard ? ' [' + self.options.keyboard + ']' : ''),
|
||||||
type: 'image'
|
type: 'image'
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
|
|
|
@ -314,6 +314,7 @@ Ox.AnnotationPanel = function(options, self) {
|
||||||
font: self.options.font,
|
font: self.options.font,
|
||||||
highlight: self.options.highlight,
|
highlight: self.options.highlight,
|
||||||
'in': self.options['in'],
|
'in': self.options['in'],
|
||||||
|
keyboard: index + 1 + '',
|
||||||
out: self.options.out,
|
out: self.options.out,
|
||||||
position: self.options.position,
|
position: self.options.position,
|
||||||
range: self.options.range,
|
range: self.options.range,
|
||||||
|
|
Loading…
Reference in a new issue