You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2019/06/04 15:14:40 UTC
[allura] 04/07: [#8282] Check key name instead of keyCode
This is an automated email from the ASF dual-hosted git repository.
brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git
commit e8f054a66ced505c343756ef4e98bb3341264b59
Author: Shalitha Suranga <sh...@gmail.com>
AuthorDate: Mon Jun 3 21:11:58 2019 +0530
[#8282] Check key name instead of keyCode
---
Allura/allura/lib/widgets/resources/js/sf_markitup.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Allura/allura/lib/widgets/resources/js/sf_markitup.js b/Allura/allura/lib/widgets/resources/js/sf_markitup.js
index dff5b10..75da620 100644
--- a/Allura/allura/lib/widgets/resources/js/sf_markitup.js
+++ b/Allura/allura/lib/widgets/resources/js/sf_markitup.js
@@ -82,7 +82,7 @@ $(window).load(function() {
// user mentions support
editor.codemirror.on("keyup", function (cm, event) {
- if(event.shiftKey && event.keyCode == 50)
+ if(event.key == "@")
CodeMirror.showHint(cm, CodeMirror.hint.alluraUserMentions);
});