mirror of
https://github.com/taigrr/JSKeyCapture
synced 2025-01-18 04:13:12 -08:00
Update custom.js
Added examples for releaseKeys and releaseKey
This commit is contained in:
parent
d2f0e55854
commit
c741723eac
@ -17,7 +17,8 @@ addShortcut(function(){
|
||||
//It might be better to only release one key, but check out how only releasing select keys might be problematic:
|
||||
addShortcut(function(){
|
||||
alert("You pressed the keys 1, 2, and 3.");
|
||||
keyStrokes[key.ONE] = false;
|
||||
keyStrokes[key.TWO] = false;
|
||||
|
||||
releaseKeys([key.ONE,key.TWO]);
|
||||
// keyStrokes[key.THREE] = false;
|
||||
},[key.ONE,key.TWO,key.THREE]);
|
||||
//alternatively, usee releaseKey() to release only one key
|
||||
|
Loading…
x
Reference in New Issue
Block a user