{
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));
">
ラジオに出演が決まってからのウラ話
対談相手はあの人気アイドル(?)…⁇
「ぶんか食堂」はこちらから↓
https://podcasts.apple.com/jp/podcast/%E3%81%B6%E3%82%93%E3%81%8B%E9%A3%9F%E5%A0%82/id1890412316
お気軽にコメントお待ちしています!
Spotifyでお聴きの方はコメント機能あります
それ以外の方は ↓番組✕へ是非お願いします
https://x.com/agreal2025?s=11&t=MLzBRH7vdQyn2T3oo2bnWQ
うらBGM
作 大山(しれっと宣伝)
YouTubeで音楽聴けます🎧
↓ ご興味有りましたら是非に。
感想
まだ感想はありません。最初の1件を書きましょう!
スクロール