Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion addon/components/docs-header/search-box/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ export default Component.extend(EKMixin, {

query: null,

keyboardActivated: true,

didInsertElement() {
this._super();

this.set('keyboardActivated', true);
this.get('fetchProject').perform();
},

Expand Down
4 changes: 2 additions & 2 deletions addon/components/docs-header/search-results/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export default Component.extend(EKMixin, {
query: null, // passed in
selectedIndex: null,

keyboardActivated: true,

didInsertElement() {
this._super();

this.set('keyboardActivated', true);

// Start downloading the search index immediately
this.get('docsSearch').loadSearchIndex();
},
Expand Down
4 changes: 1 addition & 3 deletions addon/components/docs-keyboard-shortcuts/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ export default Component.extend(EKMixin, {

isShowingKeyboardShortcuts: false,

activateKeyboard: on('init', function() {
this.set('keyboardActivated', true);
}),
keyboardActivated: true,

goto: on(keyUp('KeyG'), function() {
if (!formElementHasFocus()) {
Expand Down
6 changes: 1 addition & 5 deletions addon/components/docs-viewer/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ export default Component.extend(EKMixin, {

classNames: 'docs-viewer docs-flex docs-flex-1',

init() {
this._super();

this.set('keyboardActivated', true);
},
keyboardActivated: true,

willDestroyElement() {
this._super(...arguments);
Expand Down
54 changes: 0 additions & 54 deletions addon/controllers/application.js

This file was deleted.