{
const playerElement = document.activeElement.tagName === 'INPUT' || document.activeElement.tagName === 'TEXTAREA' || document.activeElement.isContentEditable;
if (playerElement) return; // Ignore key events when input or textarea is focused
const shiftNotAllowedShortcuts = ['Space', 'KeyK', 'KeyM', 'ArrowLeft', 'ArrowRight', 'KeyJ', 'KeyL', 'KeyS', 'ArrowUp', 'ArrowDown'];
if (shiftNotAllowedShortcuts.includes(event.code) && event.shiftKey) {
// If shift is pressed and the shortcut should not allow shift, return
return;
}
switch (event.code) {
case 'Space':
case 'KeyK':
event.preventDefault();
this.togglePlay();
break;
case 'KeyM':
event.preventDefault();
this.player.muted = !this.player.muted;
break;
case 'ArrowLeft':
event.preventDefault();
this.updateTime(this.time - 5);
break;
case 'ArrowRight':
event.preventDefault();
this.updateTime(this.time + 5);
break;
case 'KeyJ':
event.preventDefault();
this.updateTime(this.time - 10);
break;
case 'KeyL':
event.preventDefault();
this.updateTime(this.time + 10);
break;
case 'KeyS':
event.preventDefault();
this.addPlayerStar();
break;
case 'Period': // >
event.preventDefault();
if (event.shiftKey) {
this.speed = Math.min(Math.max(parseFloat(this.speed) + 0.1, 0.5), 4.0);
this.speed = parseFloat(this.speed);
this.applyPlaybackRate();
}
break;
case 'Comma': // <
event.preventDefault();
if (event.shiftKey) {
this.speed = Math.min(Math.max(parseFloat(this.speed) - 0.1, 0.5), 4.0);
this.speed = parseFloat(this.speed);
this.applyPlaybackRate();
}
break;
case 'ArrowUp':
event.preventDefault();
this.changeVolume(parseFloat(this.volume) + 0.05);
break;
case 'ArrowDown':
event.preventDefault();
this.changeVolume(parseFloat(this.volume) - 0.05);
break;
default:
break;
}
});
},
changeVolume(volume) {
if (this.player && (volume >= 0 && volume <= 1)) {
this.volume = volume;
this.player.volume = this.volume;
}
}
}" x-init="
window.addEventListener('notify', event => {
showNotification(event.detail.message);
});
window.addEventListener('replace-text', event => {
replaceText(event.detail.searchString, event.detail.replacementString);
});
const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
if (mediaQuery.matches) {
document.documentElement.classList.add('dark');
}
setupKeyboardShortcuts();
$watch('relatedAutoplayEnabled', value => window.relatedEpisodeAutoplay.saveRelatedAutoplayPreference(value));
">
MeidasTouch host Ben Meiselas reports on Donald Trump’s disastrous return to Washington DC after his meeting with Putin in Alaska which was one of the worst days in United States presidential history.
Visit https://meidasplus.com for more!
Remember to subscribe to ALL the MeidasTouch Network Podcasts:
MeidasTouch: https://www.meidastouch.com/tag/meidastouch-podcast
Legal AF: https://www.meidastouch.com/tag/legal-af
MissTrial: https://meidasnews.com/tag/miss-trial
The PoliticsGirl Podcast: https://www.meidastouch.com/tag/the-politicsgirl-podcast
The Influence Continuum: https://www.meidastouch.com/tag/the-influence-continuum-with-dr-steven-hassan
Mea Culpa with Michael Cohen: https://www.meidastouch.com/tag/mea-culpa-with-michael-cohen
The Weekend Show: https://www.meidastouch.com/tag/the-weekend-show
Burn the Boats: https://www.meidastouch.com/tag/burn-the-boats
Majority 54: https://www.meidastouch.com/tag/majority-54
Political Beatdown: https://www.meidastouch.com/tag/political-beatdown
On Democracy with FP Wellman: https://www.meidastouch.com/tag/on-democracy-with-fpwellman
Uncovered: https://www.meidastouch.com/tag/maga-uncovered
Coalition of the Sane: https://meidasnews.com/tag/coalition-of-the-sane
Learn more about your ad choices. Visit megaphone.fm/adchoices
Visit https://meidasplus.com for more!
Remember to subscribe to ALL the MeidasTouch Network Podcasts:
MeidasTouch: https://www.meidastouch.com/tag/meidastouch-podcast
Legal AF: https://www.meidastouch.com/tag/legal-af
MissTrial: https://meidasnews.com/tag/miss-trial
The PoliticsGirl Podcast: https://www.meidastouch.com/tag/the-politicsgirl-podcast
The Influence Continuum: https://www.meidastouch.com/tag/the-influence-continuum-with-dr-steven-hassan
Mea Culpa with Michael Cohen: https://www.meidastouch.com/tag/mea-culpa-with-michael-cohen
The Weekend Show: https://www.meidastouch.com/tag/the-weekend-show
Burn the Boats: https://www.meidastouch.com/tag/burn-the-boats
Majority 54: https://www.meidastouch.com/tag/majority-54
Political Beatdown: https://www.meidastouch.com/tag/political-beatdown
On Democracy with FP Wellman: https://www.meidastouch.com/tag/on-democracy-with-fpwellman
Uncovered: https://www.meidastouch.com/tag/maga-uncovered
Coalition of the Sane: https://meidasnews.com/tag/coalition-of-the-sane
Learn more about your ad choices. Visit megaphone.fm/adchoices
感想
まだ感想はありません。最初の1件を書きましょう!
スクロール