keyboard shortcuts end at '9'

This commit is contained in:
rolux 2015-04-15 18:25:40 +01:00
parent cd34cc5c6e
commit 1fb1e35bab

View file

@ -584,7 +584,7 @@ Ox.VideoAnnotationPanel = function(options, self) {
{key: Ox.SYMBOLS.escape, action: Ox._('Cancel/Deselect')},
{key: Ox.SYMBOLS.delete, action: Ox._('Delete')}
].concat(
Ox.filter(self.options.layers.map(function(layer, i) {
Ox.filter(self.options.layers.slice(0, 9).map(function(layer, i) {
return layer.editable
? {key: i + 1, action: Ox._('Add {0}', [layer.item])}
: null;