Fix reboot notice scope and preserve raw slash command input
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Maintainer-controlled web client version.
|
||||
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
|
||||
window.CHGRID_WEB_VERSION = "2026.02.27 R297";
|
||||
window.CHGRID_WEB_VERSION = "2026.02.27 R298";
|
||||
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
|
||||
window.CHGRID_TIME_ZONE = "America/Detroit";
|
||||
|
||||
@@ -2368,13 +2368,15 @@ function handleHelpViewModeInput(code: string): void {
|
||||
function handleChatModeInput(code: string, key: string, ctrlKey: boolean): void {
|
||||
const editAction = getEditSessionAction(code);
|
||||
if (editAction === 'submit') {
|
||||
const message = state.nicknameInput.trim();
|
||||
if (message.length > 0) {
|
||||
signaling.send({ type: 'chat_message', message });
|
||||
const rawMessage = state.nicknameInput;
|
||||
if (rawMessage.trim().length > 0) {
|
||||
signaling.send({ type: 'chat_message', message: rawMessage });
|
||||
state.mode = 'normal';
|
||||
state.nicknameInput = '';
|
||||
state.cursorPos = 0;
|
||||
audio.sfxUiConfirm();
|
||||
if (!/^\/me(?:\s|$)/i.test(rawMessage)) {
|
||||
audio.sfxUiConfirm();
|
||||
}
|
||||
} else {
|
||||
state.mode = 'normal';
|
||||
audio.sfxUiCancel();
|
||||
|
||||
Reference in New Issue
Block a user