Merge pull request #184 from MitarashiDango/fix_ime_conversion

特定条件下においてタグ入力が正常に行えない問題の修正
This commit is contained in:
shibafu 2019-04-29 14:32:54 +09:00 committed by GitHub
commit a8a6aecef3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,9 +33,11 @@ $('#tagInput').on('keydown', function (ev) {
case 'Tab':
case 'Enter':
case ' ':
insertTag($this.val().trim());
$this.val('');
updateTags();
if (ev.originalEvent.isComposing !== true) {
insertTag($this.val().trim());
$this.val('');
updateTags();
}
ev.preventDefault();
break;
}