1
1
import { defineComponent } from 'vue'
2
2
import { mapActions , mapMutations } from 'vuex'
3
3
import FtFlexBox from './components/ft-flex-box/ft-flex-box.vue'
4
- import TopNav from './components/top-nav/top-nav .vue'
4
+ import TopNav from './components/TopNav/TopNav .vue'
5
5
import SideNav from './components/SideNav/SideNav.vue'
6
6
import FtNotificationBanner from './components/ft-notification-banner/ft-notification-banner.vue'
7
7
import FtPrompt from './components/FtPrompt/FtPrompt.vue'
@@ -201,7 +201,6 @@ export default defineComponent({
201
201
this . setupListenersToSyncWindows ( )
202
202
this . activateKeyboardShortcuts ( )
203
203
this . openAllLinksExternally ( )
204
- this . enableSetSearchQueryText ( )
205
204
this . enableOpenUrl ( )
206
205
this . watchSystemTheme ( )
207
206
await this . checkExternalPlayer ( )
@@ -227,7 +226,6 @@ export default defineComponent({
227
226
methods : {
228
227
setDocumentTitle : function ( value ) {
229
228
document . title = value
230
- this . $nextTick ( ( ) => this . $refs . topNav ?. setActiveNavigationHistoryEntryTitle ( value ) )
231
229
} ,
232
230
checkThemeSettings : function ( ) {
233
231
const theme = {
@@ -358,25 +356,8 @@ export default defineComponent({
358
356
this . $store . commit ( 'setIsKeyboardShortcutPromptShown' , ! this . isKeyboardShortcutPromptShown )
359
357
}
360
358
361
- if ( event . altKey ) {
362
- switch ( event . key ) {
363
- case 'D' :
364
- case 'd' :
365
- this . $refs . topNav . focusSearch ( )
366
- break
367
- }
368
- }
369
- switch ( event . key ) {
370
- case 'Tab' :
371
- this . showOutlines ( )
372
- break
373
- case 'L' :
374
- case 'l' :
375
- if ( ( process . platform !== 'darwin' && event . ctrlKey ) ||
376
- ( process . platform === 'darwin' && event . metaKey ) ) {
377
- this . $refs . topNav . focusSearch ( )
378
- }
379
- break
359
+ if ( event . key === 'Tab' ) {
360
+ this . showOutlines ( )
380
361
}
381
362
} ,
382
363
@@ -528,16 +509,6 @@ export default defineComponent({
528
509
} )
529
510
} ,
530
511
531
- enableSetSearchQueryText : function ( ) {
532
- ipcRenderer . on ( IpcChannels . UPDATE_SEARCH_INPUT_TEXT , ( event , searchQueryText ) => {
533
- if ( searchQueryText ) {
534
- this . $refs . topNav . updateSearchInputText ( searchQueryText )
535
- }
536
- } )
537
-
538
- ipcRenderer . send ( IpcChannels . SEARCH_INPUT_HANDLING_READY )
539
- } ,
540
-
541
512
enableOpenUrl : function ( ) {
542
513
ipcRenderer . on ( IpcChannels . OPEN_URL , ( event , url , { isLaunchLink = false } = { } ) => {
543
514
if ( url ) {
0 commit comments