Skip to content

Instantly share code, notes, and snippets.

View octiwhale's full-sized avatar

Evan Tanner octiwhale

View GitHub Profile
@octiwhale
octiwhale / vcopywrite.js
Created January 10, 2024 05:31
vCopywrite
// Flag to check if shift key is pressed
let vcr_shiftPressed = false;
// Listen for keydown events on the window
// Flag to check if Command (on MacOS) or Ctrl (on other OS) + 'J' is pressed
let vcr_commandOrCtrlPressed = false;
// Listen for keydown events on the window
window.addEventListener('keydown', function(event) {
// Check if the pressed key is 'J' and either Command (metaKey) or Ctrl is pressed