codidact / qpixel

Q&A-based community knowledge-sharing software
https://codidact.com
GNU Affero General Public License v3.0
385 stars 69 forks source link

Keyboard shortcuts shouldn't trap ctrl-(letter) #1206

Closed cellio closed 10 months ago

cellio commented 11 months ago

meta:288400

Keyboard shortcuts allow single-letter navigation, like n for "new post". Browsers have many ctrl/command-letter shortcuts, like ctrl-n for "new window".

Typing ctrl-n triggers the qpixel shortcut, along with the browser one. But the qpixel shortcut isn't ctrl-n; it's n. Can we not react if there's a modifier key?