Skip to content

Commit

Permalink
Be able to use Control instead of CapsLock to reveal links.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpavlik committed Aug 26, 2022
1 parent a50a9fa commit 6b0a8f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nullboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -3394,7 +3394,7 @@ <h3>Auto-backup</h3>
'raw note.","raw":true,"min":false},{"text":"This is a collapsed note. Only its first line is visible. Useful f' +
'or keeping lists compact.","raw":false,"min":true}, {"text":"Links","raw":true,"min":false}, {"text":"Links pu' +
'lse on hover and can be opened via the right-click menu - https://nullboard.io","raw":false,"min":false}, {"tex' +
't":"Pressing CapsLock highlights all links and makes them left-clickable.","raw":false,"min":false}]},{"title"' +
't":"Pressing CapsLock or Control highlights all links and makes them left-clickable.","raw":false,"min":false}]},{"title"' +
':"More things to try","notes":[{"text":"\u2022 Drag notes around to rearrange.\\n\u2022 Works between the ' +
'lists too.","raw":false,"min":false},{"text":"\u2022 Click on a list name to edit.\\n\u2022 Enter to save,' +
' Esc to cancel.","raw":false,"min":false},{"text":"\u2022 Try adding a new list.\\n\u2022 Try deleting one' +
Expand Down Expand Up @@ -4158,10 +4158,10 @@ <h3>Auto-backup</h3>
function setRevealState(ev)
{
var raw = ev.originalEvent;
var caps = raw.getModifierState && raw.getModifierState( 'CapsLock' );
var do_reveal = raw.getModifierState && (raw.getModifierState( 'CapsLock' ) || raw.getModifierState( 'Control' ));

if (caps) $('body').addClass('reveal');
else $('body').removeClass('reveal');
if (do_reveal) $('body').addClass('reveal');
else $('body').removeClass('reveal');
}

//
Expand Down

0 comments on commit 6b0a8f6

Please sign in to comment.