File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/core/src/composables Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,9 @@ export function useKeyPress(
123
123
( e ) => {
124
124
modifierPressed = wasModifierPressed ( e )
125
125
126
- if ( ! modifierPressed && isInputDOMNode ( e ) ) {
126
+ const preventAction = ( ! modifierPressed || ( modifierPressed && ! options . actInsideInputWithModifier ) ) && isInputDOMNode ( e )
127
+
128
+ if ( preventAction ) {
127
129
return
128
130
}
129
131
@@ -138,7 +140,9 @@ export function useKeyPress(
138
140
( ...args ) => currentFilter ( ...args ) ,
139
141
( e ) => {
140
142
if ( isPressed . value ) {
141
- if ( ! modifierPressed && isInputDOMNode ( e ) ) {
143
+ const preventAction = ( ! modifierPressed || ( modifierPressed && ! options . actInsideInputWithModifier ) ) && isInputDOMNode ( e )
144
+
145
+ if ( preventAction ) {
142
146
return
143
147
}
144
148
You can’t perform that action at this time.
0 commit comments