Zotero: avoid error on keypress
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: I8071486fe0d8c6ed157dc2565d2aff871f8002fd
This commit is contained in:
parent
5bb2949da6
commit
fb854ffc1f
1 changed files with 2 additions and 0 deletions
|
@ -360,6 +360,8 @@ L.Control.Zotero = L.Control.extend({
|
|||
var that = this;
|
||||
if (element === 'dialog' && action === 'close') return;
|
||||
if (element === 'treeview') {
|
||||
if (action == 'keydown')
|
||||
return;
|
||||
if (data.id === 'zoterocategory') {
|
||||
var url = index;
|
||||
if (!url)
|
||||
|
|
Loading…
Reference in a new issue