From 48a59f05a613631409818cf63bd31b9f431723fd Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 7 Jul 2015 18:29:41 +0200 Subject: [PATCH] fix saving URL with enter key --- themes/_global/js/keyboard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/_global/js/keyboard.js b/themes/_global/js/keyboard.js index 4469248d..48f60a09 100644 --- a/themes/_global/js/keyboard.js +++ b/themes/_global/js/keyboard.js @@ -144,5 +144,7 @@ function goSelectPrev(selectedArticle,number) { } function enterArticle(selectedArticle) { - window.location = selectedArticle.find('a:first').attr('href'); + if (!$("#bagit").hasClass("current")) { + window.location = selectedArticle.find('a:first').attr('href'); + } } \ No newline at end of file -- 2.41.0