allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [allura] 04/07: [#8282] Check key name instead of keyCode
Date Tue, 04 Jun 2019 15:14:40 GMT
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 <shalithasuranga@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);
             });
 


Mime
View raw message