@@ -1196,6 +1196,7 @@ def _show_line_editor_help(self):
1196
1196
DEL|,|^D |Delete character.
1197
1197
Backspace|,|^H |Backspace (delete previous character).
1198
1198
Up| / |Down |Go to previous / next field.
1199
+ \\ ?| / |\\ \\ |Insert a "|?|" or a "|\\ |", respectively.
1199
1200
Esc |Cancel operation.
1200
1201
1201
1202
|Managing player volume does not work in editing mode.
@@ -1209,6 +1210,7 @@ def _show_line_editor_help(self):
1209
1210
DEL|,|^D |Delete character.
1210
1211
Backspace|,|^H |Backspace (delete previous character).
1211
1212
Up| / |Down |Go to previous / next field.
1213
+ \\ ?| / |\\ \\ |Insert a "|?|" or a "|\\ |", respectively.
1212
1214
Esc |Cancel operation.
1213
1215
1214
1216
|Managing player volume does not work in editing mode.
@@ -2064,41 +2066,38 @@ def keypress(self, char):
2064
2066
""" if no player, don't serve keyboard """
2065
2067
return
2066
2068
2067
- elif char == ord ('H' ):
2068
- if self .ws .operation_mode in \
2069
- (self .ws .NORMAL_MODE , self .ws .PLAYLIST_MODE ):
2070
- self .jumpnr = ''
2071
- self ._random_requested = False
2072
- if self .number_of_items > 0 :
2073
- self .selection = self .startPos
2074
- self .refreshBody ()
2075
- return
2069
+ elif char == ord ('H' ) and self .ws .operation_mode in \
2070
+ (self .ws .NORMAL_MODE , self .ws .PLAYLIST_MODE ):
2071
+ self .jumpnr = ''
2072
+ self ._random_requested = False
2073
+ if self .number_of_items > 0 :
2074
+ self .selection = self .startPos
2075
+ self .refreshBody ()
2076
+ return
2076
2077
2077
- elif char == ord ('M' ):
2078
- if self .ws .operation_mode in \
2079
- (self .ws .NORMAL_MODE , self .ws .PLAYLIST_MODE ):
2080
- self .jumpnr = ''
2081
- self ._random_requested = False
2082
- if self .number_of_items > 0 :
2083
- if self .number_of_items < self .bodyMaxY - 2 :
2084
- self .selection = int (self .number_of_items / 2 )
2085
- else :
2086
- self .selection = self .startPos + int ((self .bodyMaxY - 3 ) / 2 )
2087
- self .refreshBody ()
2088
- return
2078
+ elif char == ord ('M' ) and self .ws .operation_mode in \
2079
+ (self .ws .NORMAL_MODE , self .ws .PLAYLIST_MODE ):
2080
+ self .jumpnr = ''
2081
+ self ._random_requested = False
2082
+ if self .number_of_items > 0 :
2083
+ if self .number_of_items < self .bodyMaxY - 2 :
2084
+ self .selection = int (self .number_of_items / 2 )
2085
+ else :
2086
+ self .selection = self .startPos + int ((self .bodyMaxY - 3 ) / 2 )
2087
+ self .refreshBody ()
2088
+ return
2089
2089
2090
- elif char == ord ('L' ):
2091
- if self .ws .operation_mode in \
2092
- (self .ws .NORMAL_MODE , self .ws .PLAYLIST_MODE ):
2093
- self .jumpnr = ''
2094
- self ._random_requested = False
2095
- if self .number_of_items > 0 :
2096
- if self .number_of_items < self .bodyMaxY - 2 :
2097
- self .setStation (- 1 )
2098
- else :
2099
- self .selection = self .startPos + self .bodyMaxY - 3
2100
- self .refreshBody ()
2101
- return
2090
+ elif char == ord ('L' ) and self .ws .operation_mode in \
2091
+ (self .ws .NORMAL_MODE , self .ws .PLAYLIST_MODE ):
2092
+ self .jumpnr = ''
2093
+ self ._random_requested = False
2094
+ if self .number_of_items > 0 :
2095
+ if self .number_of_items < self .bodyMaxY - 2 :
2096
+ self .setStation (- 1 )
2097
+ else :
2098
+ self .selection = self .startPos + self .bodyMaxY - 3
2099
+ self .refreshBody ()
2100
+ return
2102
2101
2103
2102
elif char in (ord ('t' ), ) and \
2104
2103
self .ws .operation_mode not in (self .ws .EDIT_STATION_MODE ,
0 commit comments