Skip to content

Commit

Permalink
Switch to shift+enter from enter with adapt color and date input
Browse files Browse the repository at this point in the history
  • Loading branch information
afbora committed Feb 5, 2025
1 parent 136c221 commit 4f8d878
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion panel/src/components/Forms/Field/EntriesField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
:value="entry.value"
v-bind="field"
@input="onInput(index, $event)"
@keydown.enter.native.prevent="add(index + 1)"
@keydown.enter.shift.native.prevent="add(index + 1)"
/>
</div>
<k-button-group
Expand Down
2 changes: 1 addition & 1 deletion panel/src/components/Forms/Input/ColornameInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@input="$emit('input', $event)"
@paste.native="onPaste"
@keydown.native.meta.s.stop.prevent="onSave"
@keydown.native.enter="onSave"
@keydown.native.enter.exact="onSave"
/>
</template>

Expand Down
2 changes: 1 addition & 1 deletion panel/src/components/Forms/Input/DateInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@input="onInput($event.target.value)"
@keydown.down.stop.prevent="onArrowDown"
@keydown.up.stop.prevent="onArrowUp"
@keydown.enter.stop.prevent="onEnter"
@keydown.enter.exact.stop.prevent="onEnter"
@keydown.meta.s.stop.prevent="onEnter"
@keydown.ctrl.s.stop.prevent="onEnter"
@keydown.tab="onTab"
Expand Down

0 comments on commit 4f8d878

Please sign in to comment.