Skip to content

Commit

Permalink
Prevent console drawer toggle when hitting Escape while editing a fie…
Browse files Browse the repository at this point in the history
…ld (vuejs#512)
  • Loading branch information
Guillaume Chau authored Jan 19, 2018
1 parent a79d9c5 commit 334e245
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/devtools/components/DataField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
class="edit-input key-input"
:class="{ error: !keyValid }"
v-model="editedKey"
@keyup.esc="cancelEdit()"
@keyup.enter="submitEdit()"
@keydown.esc.capture.stop.prevent="cancelEdit()"
@keydown.enter="submitEdit()"
>
</span>
<span v-else class="key" :class="{ abstract: fieldOptions.abstract }">{{ field.key }}</span><span class="colon" v-if="!fieldOptions.abstract">:</span>
Expand All @@ -39,8 +39,8 @@
:class="{ error: !valueValid }"
v-model="editedValue"
list="special-tokens"
@keyup.esc="cancelEdit()"
@keyup.enter="submitEdit()"
@keydown.esc.capture.stop.prevent="cancelEdit()"
@keydown.enter="submitEdit()"
>
<span class="actions">
<i
Expand Down

0 comments on commit 334e245

Please sign in to comment.