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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/injected-content/mixrelixr.js
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ $(() => {
theaterBtn.find('i').text('event_seat');

// change tooltip text
theaterBtn.find('span').text('MixrElixr: Theater Mode');
theaterBtn.find('span').text('MixrElixr: Theater Mode [Ctrl + Alt + T]');

// add click handler
theaterBtn.on('click', function() {
Expand Down Expand Up @@ -1048,7 +1048,7 @@ $(() => {
heading: 'Theater Mode Enabled',
showHideTransition: 'fade',
allowToastClose: true,
hideAfter: 3000,
hideAfter: 3250,
stack: false,
position: 'top-center',
bgColor: '#151C29',
Expand Down Expand Up @@ -2222,6 +2222,13 @@ $(() => {
}
});

// Ctrl + Alt + T theater toggle listener
$(document).keyup(evt => {
if (evt.ctrlKey && evt.altKey && evt.code === 'KeyT') {
toggleTheaterMode();
}
});

function mapEmoteSizeToClass(size) {
switch (size) {
case 24:
Expand Down