|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.globalshortcut.NativeKeyboardHook
public class NativeKeyboardHook
Native hook for keyboard. It is used to notify a NativeKeyboardHookDelegate for key (even if key are pressed when application is not in foreground).
| Constructor Summary | |
|---|---|
NativeKeyboardHook()
Constructor. |
|
| Method Summary | |
|---|---|
void |
detectSpecialKeyPress(boolean enable)
Detect special key press. |
boolean |
isSpecialKeyDetection()
Returns whether or not special key detection is enabled. |
boolean |
registerShortcut(int keycode,
int modifiers)
Register a shortcut. |
boolean |
registerSpecial(int keycode)
Register a special key shortcut (for example key coming from headset). |
void |
setDelegate(NativeKeyboardHookDelegate delegate)
Set delegate object for event notification. |
void |
start()
Start the NativeKeyboardHook. |
void |
stop()
Stop the NativeKeyboardHook. |
void |
unregisterShortcut(int keycode,
int modifiers)
Unregister a shortcut. |
void |
unregisterSpecial(int keycode)
Unregister a special key shortcut (for example key coming from headset). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NativeKeyboardHook()
| Method Detail |
|---|
public void start()
public void stop()
public void setDelegate(NativeKeyboardHookDelegate delegate)
delegate - delegate object
public boolean registerShortcut(int keycode,
int modifiers)
keycode - keycode of the shortcutmodifiers - modifiers (CTRL, ALT, ...)
public void unregisterShortcut(int keycode,
int modifiers)
keycode - keycode of the shortcutmodifiers - modifiers (CTRL, ALT, ...)public boolean registerSpecial(int keycode)
keycode - keycode of the shortcut
public void unregisterSpecial(int keycode)
keycode - keycode of the shortcutpublic void detectSpecialKeyPress(boolean enable)
enable - enable or not the special key press detection.public boolean isSpecialKeyDetection()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||