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(
123123 ( e ) => {
124124 modifierPressed = wasModifierPressed ( e )
125125
126- if ( ! modifierPressed && isInputDOMNode ( e ) ) {
126+ const preventAction = ( ! modifierPressed || ( modifierPressed && ! options . actInsideInputWithModifier ) ) && isInputDOMNode ( e )
127+
128+ if ( preventAction ) {
127129 return
128130 }
129131
@@ -138,7 +140,9 @@ export function useKeyPress(
138140 ( ...args ) => currentFilter ( ...args ) ,
139141 ( e ) => {
140142 if ( isPressed . value ) {
141- if ( ! modifierPressed && isInputDOMNode ( e ) ) {
143+ const preventAction = ( ! modifierPressed || ( modifierPressed && ! options . actInsideInputWithModifier ) ) && isInputDOMNode ( e )
144+
145+ if ( preventAction ) {
142146 return
143147 }
144148
You can’t perform that action at this time.
0 commit comments