-
• #2
Ok, partially answering myself.
Using the code from https://github.com/espruino/BangleApps/blob/master/apps/hidkbd/hid-keyboard.js and changing to0x2b
innext = function (cb) { sendHid(0x2b, cb); };
I'm able to simulate TAB by a gesture I've recorded.
But how to simulate SHIFT+TAB? -
• #3
Ok... found out how to use the first skeleton code, maybe it's of some help to others. So, just needed to add
["\t"]
, and thenMODIFY.SHIFT
as per below
kb.tap(kb.KEY["\t"], kb.MODIFY.SHIFT);
With the below skeleton code I'm trying to send a TAB character (or should it be keypress?) instead of the letter A's. The intention is to control a program which is using the TAB-key to navigate forward, and SHIFT-TAB backward.
If I intepreted the reference at https://www.espruino.com/modules/ble_hid_keyboard.js correctly,
"\t"
might be TAB, but have not succeeded in replacing the..KEY.A..
with..KEY."\t"..
or with some other variations.Can this be done, if so, how?