From c22000287c36555ccce4ae234b961adbfc98d1ae Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 2 Dec 2025 13:04:27 -0500 Subject: [PATCH] Simplify chapter nav tip and change 'p' shortcut to PDF MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Shortened nav help to "Tip: ↑/↓ to select verses • ? for more shortcuts" - Changed 'p' keyboard shortcut from Reading Plans to PDF download 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- kjvstudy_org/static/base.js | 5 +++-- kjvstudy_org/templates/chapter.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/kjvstudy_org/static/base.js b/kjvstudy_org/static/base.js index 66fa27a..f6a9c99 100644 --- a/kjvstudy_org/static/base.js +++ b/kjvstudy_org/static/base.js @@ -708,7 +708,8 @@ document.addEventListener('keydown', function(e) { break; case 'p': e.preventDefault(); - window.location.href = '/reading-plans'; + var pdfBtn = document.querySelector('.pdf-btn, a[href$="/pdf"]'); + if (pdfBtn) window.location.href = pdfBtn.href; break; case 'f': e.preventDefault(); @@ -895,7 +896,7 @@ function showKeyboardHelp() { '
sStories
' + '
rResources
' + '
tTopics
' + - '
pReading Plans
' + + '
pPDF (when available)
' + '
fFamily Tree
' + '
cStrong\'s Concordance
' + '
vVerse of the Day
' + diff --git a/kjvstudy_org/templates/chapter.html b/kjvstudy_org/templates/chapter.html index 5c24966..0b42777 100644 --- a/kjvstudy_org/templates/chapter.html +++ b/kjvstudy_org/templates/chapter.html @@ -343,7 +343,7 @@ document.body.dataset.resourceReader = 'false';