Skip to content

Commit 7c4dbb8

Browse files
authored
Merge pull request #165 from anehx/remove-search-focus-shortcut
Remove search focus shortcut
2 parents 6af0c3d + 13d693b commit 7c4dbb8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

addon/components/docs-header/search-box/component.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ export default Component.extend(EKMixin, {
1515
this.set('keyboardActivated', true);
1616
},
1717

18-
focusSearch: on(keyUp('Slash'), keyUp('KeyS'), function() {
18+
focusSearch: on(keyUp('Slash'), function() {
1919
this.element.querySelector('input').focus();
2020
}),
2121

2222
unfocusSearch: on(keyUp('Escape'), function() {
2323
this.get('on-input')(null);
2424
})
25-
2625
});

0 commit comments

Comments
 (0)