1 parent e7822c8 commit 9515ed6Copy full SHA for 9515ed6
1 file changed
assets/javascript/custom.js
@@ -215,6 +215,7 @@ $(function() {
215
216
// Watch for a certain keypress to toggle dark mode
217
$(document).keypress(function(e) {
218
+ if ($(e.target).is('input, textarea, [contenteditable="true"]')) return;
219
const c = String.fromCharCode(e.which).toLowerCase();
220
if (c == 'd' || c == 'n') // 'd' or 'n' key
221
userToggleDarkMode();
0 commit comments