From 1fb1e35babd35e536a1b58df1ce05e61d8602540 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 15 Apr 2015 18:25:40 +0100 Subject: [PATCH] keyboard shortcuts end at '9' --- source/UI/js/Video/VideoAnnotationPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/UI/js/Video/VideoAnnotationPanel.js b/source/UI/js/Video/VideoAnnotationPanel.js index 8b528bf9..b11e4b25 100644 --- a/source/UI/js/Video/VideoAnnotationPanel.js +++ b/source/UI/js/Video/VideoAnnotationPanel.js @@ -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;