Skip to content

Commit

Permalink
fix(utils): ignore CommandOrControl + Shift + R in production #6
Browse files Browse the repository at this point in the history
  • Loading branch information
alex8088 committed Dec 19, 2023
1 parent 3f703ee commit 0fe04cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/optimizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const optimizer: Optimizer = {
if (input.type === 'keyDown') {
if (!is.dev) {
// Ignore CommandOrControl + R
if (input.key === 'r' && (input.control || input.meta)) event.preventDefault()
if (input.code === 'KeyR' && (input.control || input.meta)) event.preventDefault()
} else {
// Toggle devtool(F12)
if (input.code === 'F12') {
Expand Down

0 comments on commit 0fe04cd

Please sign in to comment.