mirror of
https://github.com/flarum/core.git
synced 2025-07-28 12:10:51 +02:00
Trigger mention autocomplete on any kind of input
This commit is contained in:
@@ -46,7 +46,7 @@ export default function addComposerAutocomplete() {
|
|||||||
|
|
||||||
$textarea
|
$textarea
|
||||||
.after($container)
|
.after($container)
|
||||||
.on('click keyup', function(e) {
|
.on('click keyup input', function(e) {
|
||||||
// Up, down, enter, tab, escape, left, right.
|
// Up, down, enter, tab, escape, left, right.
|
||||||
if ([9, 13, 27, 40, 38, 37, 39].indexOf(e.which) !== -1) return;
|
if ([9, 13, 27, 40, 38, 37, 39].indexOf(e.which) !== -1) return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user