Skip to content

Commit 8490afc

Browse files
committed
fix: update the keyboard combo used to auto-focus on the uikit search input to now use command + shift + f vs the browser-specific command + f combo
1 parent 875573e commit 8490afc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/uikit-workshop/src/scripts/components/pl-search/pl-search.iframe-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import Mousetrap from 'mousetrap';
33
import { targetOrigin } from '../../utils';
44

5-
Mousetrap.bind('command+f', function(e) {
5+
Mousetrap.bind('command+shift+f', function(e) {
66
e.preventDefault();
77

88
try {

packages/uikit-workshop/src/scripts/components/pl-search/pl-search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Search extends BaseComponent {
5757

5858
connected() {
5959
const self = this;
60-
Mousetrap.bind('command+f', function(e) {
60+
Mousetrap.bind('command+shift+f', function(e) {
6161
e.preventDefault();
6262
self.toggleSearch();
6363
});

0 commit comments

Comments
 (0)