daily pastebin goal
44%
SHARE
TWEET

Tagsarea 1

optimista Sep 13th, 2018 (edited) 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. case "ArrowLeft": if (cp > 0) s = { cp: cp - 1 }; break;
  2. case "ArrowRight": if(cp < tags.length) s = { cp: cp + 1 }; break;
  3. case "Backspace": if(cp > 0) s = { cp: cp - 1, tags: tags.filter((_, i) => i !== cp - 1) }; break;
  4. case "Delete": if(cp < tags.length) s = { tags: tags.filter((_, i) => i !== cp) }; break;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top