This commit is contained in:
Bram Veenboer
2011-02-20 19:39:43 +00:00
parent dff79afa29
commit 6ebbbba657
7 changed files with 32 additions and 18 deletions

View File

@@ -89,8 +89,8 @@ abstract public class WindowsApplication extends Application {
protected void key(Type key, int code) throws SendKeyException {
int scanCode = mapVirtualKey.executeCall(new Object[] {code, 0});
int result = postMessage.executeCall(new Object[] {
handle, key.getCode(), code, (scanCode << 16)});
int result = postMessage.executeCall(new Object[] {
handle, key.getCode(), code, scanCode << 16});
if (result < 1 || postMessage.getLastError() != null) {
throw new SendKeyException();
}