add keyboard shortcut to add annotation button tooltip

This commit is contained in:
rolux 2014-02-05 14:03:42 +00:00
parent a79a4e4776
commit 5748c33ba4
2 changed files with 4 additions and 1 deletions

View file

@ -42,6 +42,7 @@ Ox.AnnotationFolder = function(options, self) {
'in': 0,
item: '',
items: [],
keyboard: '',
out: 0,
position: 0,
range: 'all',
@ -122,7 +123,8 @@ Ox.AnnotationFolder = function(options, self) {
id: 'add',
style: 'symbol',
title: 'add',
tooltip: Ox._('Add {0}', [self.options.item]),
tooltip: Ox._('Add {0}', [self.options.item])
+ (self.options.keyboard ? ' [' + self.options.keyboard + ']' : ''),
type: 'image'
})
.bindEvent({

View file

@ -314,6 +314,7 @@ Ox.AnnotationPanel = function(options, self) {
font: self.options.font,
highlight: self.options.highlight,
'in': self.options['in'],
keyboard: index + 1 + '',
out: self.options.out,
position: self.options.position,
range: self.options.range,