Sunday, 29 August 2021

Why does modifyNumberUp toggle add/remove and next/previous

Note: I actually stumbled about this behavior in RStudio on MacOS yet I assume it is rather about JS.

When you place your cursor right after a number you can increment/decrement it via OPTION + SHIFT + ARROW UP/DOWN (or CNTRL + SHIFT + ARROW UP/DOWN for windows. This shortcut probably invokes the keybinding modifyNumberUp / modifyNumberDown. However, it also toggles the word pairs add/remove and next/previous.

  1. What is going on here? Is it actually JS or something else?
  2. Why does this happen? What is the purpose?
  3. Is there a list of words that are defined that way?

Just paste the following in a code editor like https://ace.c9.io/, set the cursor, and use the shortcut.

1
add
next


from Why does modifyNumberUp toggle add/remove and next/previous

No comments:

Post a Comment