96979899100101102103104
exec.key(string); } public void pressKey(CharSequence keyToPress) { Keys key = Keys.getKeyFromUnicode(keyToPress.charAt(0)); modifiers.add(key); exec.key(OperaKey.get(key).toScope(), false); }
102103104105106107108109110
modifiers.add(key); exec.key(OperaKey.get(key).toScope(), false); } public void releaseKey(CharSequence keyToRelease) { Keys key = Keys.getKeyFromUnicode(keyToRelease.charAt(0)); modifiers.remove(key); exec.key(OperaKey.get(key).toScope(), true); }