Make events respect IM composition
This commit is contained in:
parent
025acda827
commit
30f3a14c30
4 changed files with 14 additions and 4 deletions
|
@ -18,7 +18,9 @@
|
||||||
:placeholder="$t('polls.option')"
|
:placeholder="$t('polls.option')"
|
||||||
:maxlength="maxLength"
|
:maxlength="maxLength"
|
||||||
@change="updatePollToParent"
|
@change="updatePollToParent"
|
||||||
@keydown.enter.stop.prevent="nextOption(index)"
|
@keydown.enter.stop.prevent="
|
||||||
|
$event.isComposing || $event.keyCode === 229 || nextOption(index)
|
||||||
|
"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
|
|
|
@ -167,7 +167,11 @@
|
||||||
:disabled="posting && !optimisticPosting"
|
:disabled="posting && !optimisticPosting"
|
||||||
class="form-post-body"
|
class="form-post-body"
|
||||||
:class="{ 'scrollable-form': !!maxHeight }"
|
:class="{ 'scrollable-form': !!maxHeight }"
|
||||||
@keydown.exact.enter="submitOnEnter && postStatus($event, newStatus)"
|
@keydown.exact.enter="
|
||||||
|
$event.isComposing ||
|
||||||
|
$event.keyCode === 229 ||
|
||||||
|
(submitOnEnter && postStatus($event, newStatus))
|
||||||
|
"
|
||||||
@keydown.meta.enter="postStatus($event, newStatus)"
|
@keydown.meta.enter="postStatus($event, newStatus)"
|
||||||
@keydown.ctrl.enter="!submitOnEnter && postStatus($event, newStatus)"
|
@keydown.ctrl.enter="!submitOnEnter && postStatus($event, newStatus)"
|
||||||
@input="resize"
|
@input="resize"
|
||||||
|
|
|
@ -11,7 +11,9 @@
|
||||||
v-model="searchTerm"
|
v-model="searchTerm"
|
||||||
class="search-input"
|
class="search-input"
|
||||||
:placeholder="$t('nav.search')"
|
:placeholder="$t('nav.search')"
|
||||||
@keyup.enter="newQuery(searchTerm)"
|
@keydown.enter="
|
||||||
|
$event.isComposing || $event.keyCode === 229 || newQuery(searchTerm)
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
class="btn button-default search-button"
|
class="btn button-default search-button"
|
||||||
|
|
|
@ -24,7 +24,9 @@
|
||||||
class="search-bar-input"
|
class="search-bar-input"
|
||||||
:placeholder="$t('nav.search')"
|
:placeholder="$t('nav.search')"
|
||||||
type="text"
|
type="text"
|
||||||
@keyup.enter="find(searchTerm)"
|
@keydown.enter="
|
||||||
|
$event.isComposing || $event.keyCode === 229 || find(searchTerm)
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
class="button-default search-button"
|
class="button-default search-button"
|
||||||
|
|
Loading…
Reference in a new issue