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

Commit

Permalink
add chat dnd keybind
Browse files Browse the repository at this point in the history
  • Loading branch information
RedVortexDev committed Mar 27, 2024
1 parent c505c15 commit d9749ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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

0 comments on commit d9749ea

Please sign in to comment.