Keyboard.releaseAll()

Keyboard.releaseAll() not working on teensy
I am not sure it is an Arduino IDE issue but it seems to be so.

Keyboard.releaseAll() is recognized but gives an error:

Buttons.cpp.o: In function `loop':
C:\Program Files (x86)\Arduino/Buttons.ino:91: undefined reference to `usb_keyboard_class::releaseAll()'
collect2.exe: error: ld returned 1 exit status

I don't need help. I will work around this. But why?

void setup( void ) { }

void loop( void )
{
  Keyboard.releaseAll();
}
Binary sketch size: 3,710 bytes (of a 32,256 byte maximum)
Estimated memory use: 79 bytes (of a 2,560 byte maximum)

Keyboard.releaseAll() not working on teensy

Works fine for me.

I am not sure it is an Arduino IDE issue but it seems to be so.

Doubt it.

Here is my project. Everything seems to be right.

Buttons2.ino (4.19 KB)

Binary sketch size: 5,344 bytes (of a 32,256 byte maximum)
Estimated memory use: 321 bytes (of a 2,560 byte maximum)

Board = Teensy 2.0
USB Type = Keyboard + Mouse + Joystick
IDE = 1.0.5
Teensyduino was downloaded and installed last week.

Than it may be a Teensy 3.0 issue...
I have Teensy 3.0. But why? This function stands far away from hardware.

When I compile this program for teensy 2 there is no error. It is a teensyduino error.