Skip to content

Commit f7ccb4d

Browse files
committed
- version 0.8.9.19 (0.9-beta16)
- fixing main window galobal shortcuts - fixing RadioBrowser Search Window global shortcuts
1 parent 6e8d8b1 commit f7ccb4d

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

Changelog

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2022-05-19 s-n-g
2+
* version 0.8.9.19 (0.9-beta16)
3+
* fixing main window galobal shortcuts
4+
* fixing RadioBrowser Search Window global shortcuts
5+
16
2022-05-18 s-n-g
27
* version 0.8.9.18 (0.9-beta15)
38
* changing shortcut w and ^W to e and ^E on the RadioBrowser

README.html

+5
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ <h2 id="requirements">Requirements <span style="padding-left: 10px;"><sup style=
153153
<h2 id="changelog">Changelog <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
154154
<pre style="height: 200px;">
155155

156+
2022-05-19 s-n-g
157+
* version 0.8.9.19 (0.9-beta16)
158+
* fixing main window galobal shortcuts
159+
* fixing RadioBrowser Search Window global shortcuts
160+
156161
2022-05-18 s-n-g
157162
* version 0.8.9.18 (0.9-beta15)
158163
* changing shortcut w and ^W to e and ^E on the RadioBrowser

pyradio/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" pyradio -- Console radio player. "
22

3-
version_info = (0, 8, 9, 18)
3+
version_info = (0, 8, 9, 19)
44

55
# Set it to True if new stations have been
66
# added to the package's stations.csv

pyradio/radio.py

+7
Original file line numberDiff line numberDiff line change
@@ -5830,6 +5830,10 @@ def keypress(self, char):
58305830
(char not in self._chars_to_bypass_on_editor or \
58315831
self._cnf._online_browser.line_editor_has_focus()):
58325832

5833+
if chr(char) in self._global_functions.keys():
5834+
self._global_functions[chr(char)]()
5835+
return
5836+
58335837
''' handle browser search key press '''
58345838
ret = self._cnf._online_browser.keypress(char)
58355839
if ret == 0:
@@ -6325,6 +6329,9 @@ def keypress(self, char):
63256329
self._toggle_transparency()
63266330
return
63276331

6332+
elif chr(char) in self._global_functions.keys():
6333+
self._global_functions[chr(char)]()
6334+
return
63286335
# elif char in (ord('+'), ord('='), ord('.'),
63296336
# ord('-'), ord(','), ord('m'),
63306337
# ord('v'), ord('W'), ord('w')):

0 commit comments

Comments
 (0)