Skip to content

Commit

Permalink
Make copy & paste possible outside of scale data
Browse files Browse the repository at this point in the history
ref #515
  • Loading branch information
frostburn committed Dec 27, 2023
1 parent c6dae56 commit 1c683c4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,11 @@ function windowKeydown(event: KeyboardEvent) {
return
}
// Disable browser specific features like quick find on Firefox
event.preventDefault()
// Disable browser specific features like quick find on Firefox,
// but allow normal copy & paste.
if (!event.ctrlKey && !event.altKey && !event.metaKey) {
event.preventDefault()
}
// The key left of Digit1 releases sustained keys
if (event.code === deactivationCode.value) {
Expand Down

0 comments on commit 1c683c4

Please sign in to comment.