Hotkey Listener overrides hotkey use (ctrl-c)
I'm trying to write a java program that can listen when a user copies a text like this:
String key = "c";
int modifiers = KeyModifier.CTRL;
public void hotkeyPressed(
}
};
HotkeyManager.
My problem is that this code overrides the global hotkey so that nothing is actually copied to clipboard when I press ctrl + c (when I get result from clipboard I only get what I copied before running this program, it works fine when I'm not using this hotkeylistener though). Is it possible to let the user copy text with ctrl + c and just listen to the event without intercepting it, or somehow place the selected text in clipboard?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Max
- Solved:
- Last query:
- Last reply: