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')"
|
||||
:maxlength="maxLength"
|
||||
@change="updatePollToParent"
|
||||
@keydown.enter.stop.prevent="nextOption(index)"
|
||||
@keydown.enter.stop.prevent="
|
||||
$event.isComposing || $event.keyCode === 229 || nextOption(index)
|
||||
"
|
||||
>
|
||||
</div>
|
||||
<button
|
||||
|
|
|
@ -167,7 +167,11 @@
|
|||
:disabled="posting && !optimisticPosting"
|
||||
class="form-post-body"
|
||||
: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.ctrl.enter="!submitOnEnter && postStatus($event, newStatus)"
|
||||
@input="resize"
|
||||
|
|
|
@ -11,7 +11,9 @@
|
|||
v-model="searchTerm"
|
||||
class="search-input"
|
||||
:placeholder="$t('nav.search')"
|
||||
@keyup.enter="newQuery(searchTerm)"
|
||||
@keydown.enter="
|
||||
$event.isComposing || $event.keyCode === 229 || newQuery(searchTerm)
|
||||
"
|
||||
>
|
||||
<button
|
||||
class="btn button-default search-button"
|
||||
|
|
|
@ -24,7 +24,9 @@
|
|||
class="search-bar-input"
|
||||
:placeholder="$t('nav.search')"
|
||||
type="text"
|
||||
@keyup.enter="find(searchTerm)"
|
||||
@keydown.enter="
|
||||
$event.isComposing || $event.keyCode === 229 || find(searchTerm)
|
||||
"
|
||||
>
|
||||
<button
|
||||
class="button-default search-button"
|
||||
|
|
Loading…
Reference in a new issue