We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 276aab4 commit f02d50dCopy full SHA for f02d50d
js/topcodereditor.js
@@ -510,6 +510,16 @@
510
editor.codemirror.setValue('');
511
});
512
513
+ editor.codemirror.on('change', function (cm, event) {
514
+ // Key events don't work properly on Android Chrome
515
+ if (!cm.state.completionActive /*Enables keyboard navigation in autocomplete list*/) {
516
+ if (event.origin == '+input' && event.text && event.text.length > 0 && event.text[0] === '@') {
517
+ cm.showHint({ completeSingle: false, alignWithWord: true });
518
+ return;
519
+ }
520
521
+ });
522
+
523
editor.codemirror.on('keydown', function (cm, event) {
524
if (!cm.state.completionActive /*Enables keyboard navigation in autocomplete list*/) {
525
if (event.key == '@') {
0 commit comments