Skip to content

fix cmd+m shortcut to minimize the window on macos and not mute the video#5829

Merged
FreeTubeBot merged 1 commit intoFreeTubeApp:developmentfrom
jacopo-degattis:fix/macos-mute-shortcut
Oct 7, 2024
Merged

fix cmd+m shortcut to minimize the window on macos and not mute the video#5829
FreeTubeBot merged 1 commit intoFreeTubeApp:developmentfrom
jacopo-degattis:fix/macos-mute-shortcut

Conversation

@jacopo-degattis
Copy link

Cmd+M shortcut now minimize the window on macos and doesn't mute the video anymore.

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

closes #5828

Description

Before this pull request when the shortcut cmd + m was pressed on macOS the video got muted even though on macOS that shortcut is intended to minimize the window.
What I did is to add a check on whether the metaKey was pressed or not and act accordingly.
Now when the metaKey is pressed with the m key the window minimize and when only the m key is pressed the video get muted.

Screenshots

Testing

Desktop

  • OS: MacOS
  • OS Version: Sonoma 14.3.1
  • FreeTube version: v0.21.3 Beta

Additional context

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) October 6, 2024 16:46
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 6, 2024
@FreeTubeBot FreeTubeBot merged commit 7745a78 into FreeTubeApp:development Oct 7, 2024
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 7, 2024
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Oct 7, 2024
* development: (55 commits)
  Translated using Weblate (Russian)
  Translated using Weblate (Japanese)
  fix cmd+m shortcut to minimize the window on macos and not mute the video (FreeTubeApp#5828) (FreeTubeApp#5829)
  Update dependabot.yml to add new eslint packages into the eslint group (FreeTubeApp#5837)
  Bump the babel group with 4 updates (FreeTubeApp#5831)
  Bump globals from 15.9.0 to 15.10.0 (FreeTubeApp#5835)
  Bump lefthook from 1.7.17 to 1.7.18 (FreeTubeApp#5836)
  Bump the eslint group with 2 updates (FreeTubeApp#5832)
  Bump @eslint/js from 9.11.1 to 9.12.0 (FreeTubeApp#5833)
  Bump @eslint/compat from 1.1.1 to 1.2.0 (FreeTubeApp#5834)
  Translated using Weblate (Belarusian)
  Translated using Weblate (Hebrew)
  Translated using Weblate (Chinese (Traditional Han script))
  Turn `vue/no-useless-template-attributes` eslint rule back on (FreeTubeApp#5830)
  Translated using Weblate (Serbian)
  Translated using Weblate (Belarusian)
  Translated using Weblate (Belarusian)
  Translated using Weblate (Belarusian)
  Upgrade eslint 8 > 9 (FreeTubeApp#5777)
  Translated using Weblate (Belarusian)
  ...
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Oct 10, 2024
* development: (59 commits)
  Translated using Weblate (Belarusian)
  Translated using Weblate (Belarusian)
  Translated using Weblate (Belarusian)
  Enable Belarusian locale (FreeTubeApp#5841)
  Translated using Weblate (Russian)
  Translated using Weblate (Japanese)
  fix cmd+m shortcut to minimize the window on macos and not mute the video (FreeTubeApp#5828) (FreeTubeApp#5829)
  Update dependabot.yml to add new eslint packages into the eslint group (FreeTubeApp#5837)
  Bump the babel group with 4 updates (FreeTubeApp#5831)
  Bump globals from 15.9.0 to 15.10.0 (FreeTubeApp#5835)
  Bump lefthook from 1.7.17 to 1.7.18 (FreeTubeApp#5836)
  Bump the eslint group with 2 updates (FreeTubeApp#5832)
  Bump @eslint/js from 9.11.1 to 9.12.0 (FreeTubeApp#5833)
  Bump @eslint/compat from 1.1.1 to 1.2.0 (FreeTubeApp#5834)
  Translated using Weblate (Belarusian)
  Translated using Weblate (Hebrew)
  Translated using Weblate (Chinese (Traditional Han script))
  Turn `vue/no-useless-template-attributes` eslint rule back on (FreeTubeApp#5830)
  Translated using Weblate (Serbian)
  Translated using Weblate (Belarusian)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Cmd+M on macOS mutes the video player instead of minimizing FreeTube

5 participants