Skip to content

Commit

Permalink
Re-order button declarations to match HTML order
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Dec 15, 2023
1 parent 25e8592 commit 68204fa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions srcjs/stendhal/ui/component/ChatInputComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ export class ChatInputComponent extends Component {
this.history = config.getObject("chat.history") || [];
this.historyIndex = config.getInt("chat.history.index", 0);

// ** keyword shortcuts ** //
const btn_keyword = document.getElementById("keywords")!;
// event to bring up keywords dialog
btn_keyword.addEventListener("click", (e) => {
this.buildChatOptions();
});

// ** emoji shortcuts ** //

const btn_emoji = document.getElementById("emojis")!;
Expand All @@ -56,13 +63,6 @@ export class ChatInputComponent extends Component {
btn_emoji.addEventListener("click", (e) => {
this.buildEmojiMap();
});

// ** keyword shortcuts ** //
const btn_keyword = document.getElementById("keywords")!;
// event to bring up keywords dialog
btn_keyword.addEventListener("click", (e) => {
this.buildChatOptions();
});
}

public clear() {
Expand Down

0 comments on commit 68204fa

Please sign in to comment.