vsco / keys

Keys for Adobe Photoshop Lightroom
http://vsco.github.io/keys/
GNU General Public License v2.0
341 stars 63 forks source link

Can't get custom key working... #18

Open jaredgoertzen opened 8 years ago

jaredgoertzen commented 8 years ago

Before this became open source I had my "up" arrow key set to paste the settings from the previous image I was on. Can't get the custom key set to work now... Any ideas??

This is what I set: { "mod": "0", "key": "126", "adj": { "Develop: Settings": "Paste Settings From Previous" } },

Thanks for any help out there :)

ilquare commented 4 years ago

Hi, do you have solved? How did you do? thanks

jaredgoertzen commented 4 years ago

@ilquare I actually stopped using this product. I switched to Better Touch Toolbar and haven't looked back! Lots of awesome customizability.

ilquare commented 4 years ago

unfortunately I use WIN and Better Touch Toolbar doesn't works

hybridvision commented 4 years ago

If anyone is still looking for how to do this, I think I found the answer in this Standard [VSCO].keysjson layout.

In this case they're assigning the / key (44) and remapping it to the default Lightroom keyboard shortcut: option + command + v for "Paste Settings from Previous". This is represented as mod key 12 (option is 4 and command is 8, so 4 + 8 = 12) and key 9, which is "v".

I haven't tested this with the up arrow but this should make it work:

    {
      "mod": "0",
      "key": "126",
      "adj": {
        "_RemapKey": {
          "mod": "12",
          "key": "9"
        }
      }
    },

For finding the key codes, I came across this helpful keyboard map in another post:

image

Note: the modifier keys have their own internal codes in VSCO Keys. From what I could find, these are the mod key values, including the different values for multiple modifier keys:

1: shift
2: control
3: shift + control (1 + 2)
4: option
5: shift + option (1 + 4)
6: control + option (2 + 4)
7: shift + control + option (1 + 2 + 4)
8: cmd
9: cmd + shift (8 + 1)
11: cmd + shift + control (8 + 1 + 2)
12: cmd + option (8 + 4)
13: cmd + option + shift (8 + 4 + 1)
14: cmd + option + control (8 + 4 + 2)
15: cmd + option + shift + control (8 + 4 + 1 + 2)

With this knowledge, it should be possible to create new complex shortcuts or remap just about any Lightroom menu option (even those without existing shortcuts if we use the Mac OS Application Keyboard Shortcut overrides).

Hope it helps someone!