Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Alt + T shortcut to toggle theatermode #97

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

FierySama
Copy link
Contributor

Alt + T key combo now toggles theater mode on and off! Escape still works too separately to exit theatermode

Description of the Change

Repurposed the escape event listener code to create a key combination of Alt + T that toggles theatermode on and off!

  • Updated tooltip
    image

  • Slowed down this toast by 1/4 of a second for slower readers, feel free to revert this
    image

Benefits

  • Ease of access shortcut keys, sometimes I want to exit the theater mode to look at vods/clips, but am too lazy to click the theatermode button again.

Possible Drawbacks

I admit I have no idea how this will function on MacOs. I used this https://www.w3.org/TR/uievents-code/#keyboard-key-codes . I assume alt/option + T on mac may still do the same thing?

Credit

SReject helped me remove redundant code before this commit, thanks Reject!

Alt t keycombo now toggles theatermode on and off! Escape still works too.
@FierySama FierySama requested a review from ebiggz as a code owner February 4, 2020 01:26
@FierySama
Copy link
Contributor Author

This works fine on Chrome, however on Firefox while it works it brings up this menu each time.
image

Will keep this PR open if anyone likes the concept enough

This fixes alt bringing up Firefox's alt menu. Works on both chrome and ff.
@FierySama
Copy link
Contributor Author

It's terrible. since there is no check to see whether you're typing in chat, Shift + T means if you capitalize things in sentences often, you'll be toggling theater mode and off. This is the biggest flaw in this PR! ahhh!!!

@ebiggz
Copy link
Member

ebiggz commented Feb 5, 2020

This is a great idea Fiery! I wonder if Shift + Alt + T or something to that effect would fit all browser types

@SReject
Copy link

SReject commented Feb 5, 2020

I wonder if Shift + Alt + T or something to that effect would fit all browser types

The AltLeft key used will work with iOS's options key aswell, if that is what you were musing

src/injected-content/mixrelixr.js Outdated Show resolved Hide resolved
src/injected-content/mixrelixr.js Outdated Show resolved Hide resolved
* Works on FF, Works on Chrome!
* Thank you Reject and Biggz :D
* I don't know how to test for macOS so far.
SReject
SReject previously approved these changes Feb 6, 2020
Keyup works fantastic here, works on Chrome and FF
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants