KeyCode Modifiers

    • BREAKING: Using numbers, i.e. keyCodes, as modifiers is no longer supported

    In Vue 2, were supported as a way to modify a v-on method.

    Since KeyboardEvent.keyCode has been deprecated, it no longer makes sense for Vue 3 to continue supporting this as well. As a result, it is now recommended to use the kebab-case name for any key you want to use as a modifier.

    For those using keyCode in their codbase, we recommend converting them to their kebab-cased named equivalents.