Skip to content

Commit c5ceeb0

Browse files
committed
feat: set cursor position on arrow left/right
1 parent 07322bc commit c5ceeb0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/components/VueCommandQuery.vue

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
@input="setQuery($event.target.value)"
2222
@keydown.tab.exact.prevent="autocompleteQuery"
2323
@keydown.ctrl.r.exact.prevent="reverseISearch"
24+
@keyup.arrow-left.exact="setCursorPosition($refs.queryRef.selectionStart)"
25+
@keyup.arrow-right.exact="setCursorPosition($refs.queryRef.selectionStart)"
2426
@keyup.enter.exact="submit" />
2527
</div>
2628
</template>

0 commit comments

Comments
 (0)