@@ -368,6 +368,8 @@ def __init__(self, pyradio_config,
368
368
self .ws .SEARCH_NORMAL_MODE : self ._redisplay_search_show ,
369
369
self .ws .SEARCH_PLAYLIST_MODE : self ._redisplay_search_show ,
370
370
self .ws .SEARCH_THEME_MODE : self ._redisplay_search_show ,
371
+ self .ws .SEARCH_SELECT_STATION_MODE : self ._redisplay_search_show ,
372
+ self .ws .SEARCH_SELECT_PLAYLIST_MODE : self ._redisplay_search_show ,
371
373
self .ws .THEME_MODE : self ._redisplay_theme_mode ,
372
374
self .ws .PLAYLIST_RECOVERY_ERROR_MODE : self ._print_playlist_recovery_error ,
373
375
self .ws .ASK_TO_CREATE_NEW_THEME_MODE : self ._redisplay_ask_to_create_new_theme ,
@@ -467,7 +469,7 @@ def __init__(self, pyradio_config,
467
469
1 - playlist search
468
470
2 - theme search
469
471
'''
470
- self ._search_classes = [None , None , None ]
472
+ self ._search_classes = [None , None , None , None ]
471
473
472
474
''' points to list in which the search will be performed '''
473
475
self ._search_list = []
@@ -6788,7 +6790,9 @@ def keypress(self, char):
6788
6790
''' Do this here to properly resize '''
6789
6791
return
6790
6792
6791
- elif self .ws .operation_mode == self .ws .PASTE_MODE :
6793
+ elif self .ws .operation_mode == self .ws .PASTE_MODE and \
6794
+ char not in self ._chars_to_bypass and \
6795
+ char not in self ._chars_to_bypass_for_search :
6792
6796
''' Return from station selection window for pasting '''
6793
6797
if char == ord ('?' ):
6794
6798
self ._show_config_playlist_help ()
@@ -7134,7 +7138,7 @@ def keypress(self, char):
7134
7138
return
7135
7139
7136
7140
elif self .ws .operation_mode in \
7137
- [self ._search_modes [x ] for x in self ._search_modes .keys ()]:
7141
+ [self ._search_modes [x ] for x in self ._search_modes .keys ()]:
7138
7142
''' serve search results '''
7139
7143
ret = self .search .keypress (self .search ._edit_win , char )
7140
7144
if ret == 0 :
@@ -7144,7 +7148,10 @@ def keypress(self, char):
7144
7148
elif self .ws .previous_operation_mode == self .ws .THEME_MODE :
7145
7149
self ._search_list = self ._theme_selector ._themes
7146
7150
sel = self ._theme_selector .selection + 1
7147
- elif self .ws .previous_operation_mode == self .ws .SELECT_PLAYLIST_MODE :
7151
+ elif self .ws .previous_operation_mode in (
7152
+ self .ws .SELECT_PLAYLIST_MODE ,
7153
+ self .ws .PASTE_MODE ,
7154
+ ):
7148
7155
self ._search_list = self ._playlist_select_win ._items
7149
7156
sel = self ._playlist_select_win ._selected_playlist_id + 1
7150
7157
elif self .ws .previous_operation_mode == self .ws .SELECT_STATION_MODE :
0 commit comments