Skip to content

Commit

Permalink
Merge pull request #2 from popiazaza/master
Browse files Browse the repository at this point in the history
Fix @ bug when using non-English keyboard
  • Loading branch information
jaideejung007 authored Nov 26, 2021
2 parents b0f2224 + 82c543b commit 763f015
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions upload/static/js/at.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function extrafunc_atMenu() {
if(BROWSER.opera) {
return;
}
if(wysiwyg && EXTRAEVENT.shiftKey && EXTRAEVENT.keyCode == 50 && postaction && (postaction == 'newthread' || postaction == 'reply' || postaction == 'edit')) {
if(wysiwyg && EXTRAEVENT.key == '@' && postaction && (postaction == 'newthread' || postaction == 'reply' || postaction == 'edit')) {
keyMenu('@', atMenu);
ctlent_enable[13] = 0;
doane(EXTRAEVENT);
Expand All @@ -33,7 +33,7 @@ function extrafunc_atMenuKeyUp() {
if(BROWSER.opera) {
return;
}
if(wysiwyg && EXTRAEVENT.shiftKey && EXTRAEVENT.keyCode == 50 && postaction && (postaction == 'newthread' || postaction == 'reply' || postaction == 'edit') && !atkeypress) {
if(wysiwyg && EXTRAEVENT.key == '@' && postaction && (postaction == 'newthread' || postaction == 'reply' || postaction == 'edit') && !atkeypress) {
keyBackspace();
keyMenu('@', atMenu);
ctlent_enable[13] = 0;
Expand Down Expand Up @@ -189,4 +189,4 @@ function atMenuSet(kw) {
selection.addRange(range);
}
checkFocus();
}
}

0 comments on commit 763f015

Please sign in to comment.