Comments (2)
Is there any reason why app native key binding is blocked on macOS?
I had a quick look and it seems like it's a remnant of the previous implementation, where hotkeys were not customizable.
Customizable hotkeys were added in aaf60cd.
If you take a look at the git-blame of the MainMenuComponent
from the commit prior to that, you can see that the refresh callback was unchanged and just got moved when the customizable hotkeys were implemented:
- https://github.com/streamlink/streamlink-twitch-gui/blame/df73b7e2654af5b2dd519dab23ca61a824b6dbe0/src/app/ui/components/main-menu/component.js#L21-L26
- https://github.com/streamlink/streamlink-twitch-gui/blame/df73b7e2654af5b2dd519dab23ca61a824b6dbe0/src/app/ui/components/main-menu/component.js#L44-L48
- aaf60cd#diff-00e4acc8c9a2852c479064e5fae65d09e55455b62c624d68efff93e4ae235717
The if ( isDarwin ) { return; }
block was added to the MainMenuComponent
's refresh
callback, because the macOS system menubar always gets added with the static CMD+r
hotkey (due to convention), same as the CMD+,
for opening the settings menu, so back then it was deemed redundant having the CTRL+r
refresh hotkey as well.
Let's remove the isDarwin
check.
Since you already had a look at the code, do you want to open a quick PR which removes the check and the comment above? This won't affect any tests, so it's just these two lines. If not, then I can apply the changes myself later.
from streamlink-twitch-gui.
Thanks for detailed answer. Let me know if there's anything needs to change on pr.
from streamlink-twitch-gui.
Related Issues (20)
- Audio stuttering while streaming HOT 3
- On small windows below minimum width, horizontal scroll is broken if there's vertical one HOT 6
- Skia shader compilation error on Arch Linux after upgrading llvm-libs 17.0.6-3 -> 17.0.6-4 HOT 4
- v2.5.0 Crashes on Launch (NW.js core dumped) HOT 12
- Notifications don't display when stream title is empty
- Window decorations are shown on X11 and Gnome Wayland HOT 22
- Window `restore` event doesn't trigger when unmaximizing HOT 4
- "Close to tray" setting HOT 1
- Streamlink-twitch-GUI stuck on floating mode on hyprland, maybe any tiling WM since 2.5.x HOT 6
- Custom protocol handler support (e.g. `streamlink://`) HOT 6
- NW.js version issues HOT 1
- Can auto-update check be suppressed on first launch? HOT 1
- Skia shader compilation error on Arch Linux after upgrading llvm-libs 17.0.6-4 -> 17.0.6-5 HOT 4
- Request to run on windows 7 HOT 1
- TODO: replace istanbul-js with native v8 code coverage
- kill streamlink-gui if already open and try to open it again HOT 2
- Import/Export Configuration HOT 2
- Could there be an option to ALLOW advertisements? Long total silences during watching not nice HOT 2
- [Closed thread, more info] "Could there be an option to ALLOW advertisements?" Ublock Origin prevents ads on Twitch.tv! HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from streamlink-twitch-gui.