Skip to content

Commit d025670

Browse files
committed
Merge commit 'b2006226e898e77c6416f64ba4dde88e97355315'
2 parents f42ac85 + b200622 commit d025670

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

template/js/app.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ const availableCommands = ['home', ...config.sections.map(s => s.id), 'help', 'd
3636
// Generate welcome message with dynamic padding
3737
function generateWelcomeMessage() {
3838
const title = config.conference.title || 'Conference';
39-
const dates = config.dates.start && config.dates.end
40-
? `${config.dates.start} - ${config.dates.end}`
39+
const dates = config.dates.start && config.dates.end
40+
? `${config.dates.start} - ${config.dates.end}`
4141
: '';
4242
const city = config.venue.city || '';
4343

@@ -332,7 +332,7 @@ function goHome() {
332332

333333
// Show help
334334
function showHelp() {
335-
const commandList = config.sections.map(s =>
335+
const commandList = config.sections.map(s =>
336336
` ${s.id.padEnd(12)} ${s.label}`
337337
).join('\n');
338338

@@ -568,3 +568,14 @@ setInterval(() => {
568568
setTimeout(() => input.classList.remove('pulse'), 1000);
569569
}
570570
}, 5000);
571+
572+
// Global keyboard shortcuts
573+
document.addEventListener('keydown', (e) => {
574+
// ESC to exit maximized view
575+
if (e.key === 'Escape' && contentDisplay.classList.contains('maximized')) {
576+
const maximizeBtn = contentDisplay.querySelector('.content-maximize-btn');
577+
if (maximizeBtn) {
578+
toggleMaximize(maximizeBtn);
579+
}
580+
}
581+
});

0 commit comments

Comments
 (0)