@redseed/redseed-ui-vue3 8.40.0 → 8.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -196,6 +196,20 @@ function handleKeyup(event) {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
function handleKeydown(event) {
|
|
199
|
+
// Let selection modifiers pass through to the native input so keyboard
|
|
200
|
+
// text-selection shortcuts work while typing (e.g. Shift+Home, Ctrl+Shift+
|
|
201
|
+
// ArrowLeft on Windows; Cmd+Shift+ArrowLeft, Option+Shift+ArrowLeft on
|
|
202
|
+
// macOS). Without this, the preventDefault() calls below would intercept
|
|
203
|
+
// Arrow/Home/End and kill the browser's native text selection.
|
|
204
|
+
if (event.shiftKey || event.ctrlKey || event.metaKey) {
|
|
205
|
+
return
|
|
206
|
+
}
|
|
207
|
+
// Alt+ArrowDown is the standard ARIA combobox open shortcut — let it through.
|
|
208
|
+
// Other Alt combos (e.g. Option+Arrow on macOS) pass through to native.
|
|
209
|
+
if (event.altKey && event.key !== 'ArrowDown') {
|
|
210
|
+
return
|
|
211
|
+
}
|
|
212
|
+
|
|
199
213
|
if (event.key === 'ArrowDown') {
|
|
200
214
|
event.preventDefault()
|
|
201
215
|
if (!isOpen.value) {
|