crowbartools / MixrElixr

Browser extension that enhances your Mixer viewing experience with custom emotes, new features, and a ton of options.
https://mixrelixr.com
GNU General Public License v3.0
23 stars 7 forks source link

Alt + T shortcut to toggle theatermode #97

Open FierySama opened 4 years ago

FierySama commented 4 years ago

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!

Benefits

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!

FierySama commented 4 years ago

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

FierySama commented 4 years ago

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 commented 4 years ago

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

SReject commented 4 years ago

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