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();