mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
Keyboard.type() now just presses and releases the key indicated - doesn't releaseAll()
This commit is contained in:
parent
2e140e4950
commit
63fdb8ef7a
@ -524,12 +524,9 @@ 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
|
||||||
|
Loading…
Reference in New Issue
Block a user