Leonardo keyboard leds emulation?

I attach new diffs valid for the Arduino IDE 1.8.1

I have made a small change in the way it should be used in the sketch.

Keyboard.getLedStatus(LED_CAPS_LOCK)

returns true if the Caps Lock led is on, and false if the Caps Lock led is off.

Keyboard.getLedStatus(LED_NUM_LOCK)

returns true if the Num Lock led is on, and false if the Num Lock led is off.

Keyboard.getLedStatus(LED_SCROLL_LOCK)

returns true if the Scroll Lock led is on, and false if the Scroll Lock led is off.

HID.diff.txt (1.54 KB)

Keyboard.diff.txt (2.52 KB)