Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

add chat dnd keybind #80

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ public void onInitializeClient() {
KeyMapping chatNone = KeyBindingHelper.registerKeyBinding(new KeyMapping(
"key.recode.chat_none", InputConstants.Type.KEYSYM, -1, "key.category.recode"));

// chat dnd
KeyMapping chatDnd = KeyBindingHelper.registerKeyBinding(new KeyMapping(
"key.recode.chat_dnd", InputConstants.Type.KEYSYM, -1, "key.category.recode"));

// =======

// Staff Keybinds
Expand Down Expand Up @@ -193,6 +197,11 @@ public void onInitializeClient() {
sendCommand("chat none");
}

// chat dnd
while (chatDnd.consumeClick()) {
sendCommand("chat dnd");
}

// search
while (searchFunction.consumeClick()) {
if (DF.isInMode(DF.getCurrentDFState(), PlotMode.Dev.ID)) {
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/recode/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@
"key.recode.chat_global": "Chat Global",
"key.recode.chat_local": "Chat Local",
"key.recode.chat_none": "Chat None",
"key.recode.chat_dnd": "Chat Do Not Disturb",

"key.recode.search": "Function/Process Search",

Expand Down
Loading