Skip to content

Commit

Permalink
Merge pull request #111 from Scille/fix-code-pasting-macos
Browse files Browse the repository at this point in the history
Fix MacOS paste in MsCodeValidationInput
  • Loading branch information
Ironicbay authored Jul 19, 2024
2 parents ed6d288 + 84dc164 commit 3e90892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/ms-input/MsCodeValidationInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async function checkCode(): Promise<void> {
}
function onKeydown(event: KeyboardEvent): void {
if (!isDigits(event.key) && !event.ctrlKey) {
if (!isDigits(event.key) && !event.ctrlKey && !event.metaKey) {
event.preventDefault();
}
}
Expand Down

0 comments on commit 3e90892

Please sign in to comment.