Global hotkeys, in TeamSpeak's own shape
Bindings are captured system-wide rather than only while the window has focus: X11's RECORD extension where the X server sees every key, and a /dev/input reader as the Wayland fallback. Any key can act as a modifier, mouse buttons included, as TS3 allows. The action catalogue, its three categories and the "advanced actions" split are reverse-engineered from the original client; actions this client cannot perform are listed but greyed out. Push-to-talk becomes one of these hotkeys, so the old focus-bound pushToTalkKey setting is gone and the Voice Activation button edits that binding instead. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package com.ts3client.ui;
|
||||
|
||||
import com.ts3client.hotkey.HotkeyAction;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Supplies the concrete values an action's parameter can take — the bookmarks, sound
|
||||
* packs and channels the hotkey tree hangs under an action as its leaves, so a binding
|
||||
* reads as "Sounds / Activate Soundpack / Default Sound Pack (Male)".
|
||||
*/
|
||||
interface HotkeyArguments {
|
||||
|
||||
/** @return the choices for this action, or an empty list when it is free-form */
|
||||
List<String> choices(HotkeyAction action);
|
||||
}
|
||||
Reference in New Issue
Block a user