Keyboard.type() now just presses and releases the key indicated - doesn't releaseAll()

This commit is contained in:
Zach Eveland 2012-03-26 17:00:16 -04:00
parent 9c040a8a2b
commit f646c9186d
1 changed files with 4 additions and 7 deletions

View File

@ -523,13 +523,10 @@ void Keyboard_::releaseAll(void)
// type() does a press and release of the specified key. // type() does a press and release of the specified key.
size_t Keyboard_::type(uint8_t c) size_t Keyboard_::type(uint8_t c)
{ {
releaseAll(); uint8_t p = press(c); // Keydown
// Keydown uint8_t r = release(c); // Keyup
press(c); return (p&r);
// Keyup
releaseAll();
return 1;
} }
#endif #endif