Skip to content

Commit

Permalink
Prevent default on invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbushnell committed May 18, 2023
1 parent fcd31cb commit 107c61b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release Notes for Palette

## 1.7.4 - 2023-05-18

### Fixed
- Prevent default to ensure browser shortcuts aren't triggered when invoking Palette ([Discussion](https://github.com/trendyminds/craft-palette/discussions/31))

## 1.7.3 - 2023-05-10

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "trendyminds/craft-palette",
"description": "A command palette to easily jump to specific areas within Craft",
"type": "craft-plugin",
"version": "1.7.3",
"version": "1.7.4",
"keywords": ["palette", "craft", "craft cms", "cmdk", "spotlight", "craft plugin"],
"license": "MIT",
"authors": [
Expand Down
3 changes: 2 additions & 1 deletion scripts/palette.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export default function Palette() {

useHotkeys(
'ctrl+k, command+k',
() => {
(ev) => {
ev.preventDefault()
setIsOpen((prevStatus) => !prevStatus)
},
{ enableOnTags: ['INPUT'] }
Expand Down
2 changes: 1 addition & 1 deletion src/assetbundles/resources/init.js

Large diffs are not rendered by default.

0 comments on commit 107c61b

Please sign in to comment.