From 40bb8e8e68b3a0c246bdb0b7ade1e2b14cb5493a Mon Sep 17 00:00:00 2001 From: Kushal Pandya Date: Wed, 21 Nov 2018 11:15:21 +0530 Subject: [PATCH] Fix Issuable container element selector for shortcuts handling --- .../javascripts/behaviors/shortcuts/shortcuts_issuable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/behaviors/shortcuts/shortcuts_issuable.js b/app/assets/javascripts/behaviors/shortcuts/shortcuts_issuable.js index 5f86fc9e63d..2918e1486a7 100644 --- a/app/assets/javascripts/behaviors/shortcuts/shortcuts_issuable.js +++ b/app/assets/javascripts/behaviors/shortcuts/shortcuts_issuable.js @@ -30,7 +30,7 @@ export default class ShortcutsIssuable extends Shortcuts { return false; } - const documentFragment = getSelectedFragment(document.querySelector('.issuable-details')); + const documentFragment = getSelectedFragment(document.querySelector('#content-body')); if (!documentFragment) { $replyField.focus();