Remap use/speak keys and update help/changelog
This commit is contained in:
@@ -5,7 +5,9 @@
|
||||
"items": [
|
||||
"Added support for Dropbox links and HTTP streams for item sounds and radio stations.",
|
||||
"You will no longer repeatedly hit walls.",
|
||||
"Added user volume control and calibration."
|
||||
"Added user volume control and calibration.",
|
||||
"Added up/down arrows and page up/page down for numeric field adjustment.",
|
||||
"Moved Use item to Enter Key instead of u, moved speak users to U from Shift U."
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
"description": "List users; Enter teleports to that user"
|
||||
},
|
||||
{
|
||||
"keys": "Shift+U",
|
||||
"keys": "U",
|
||||
"description": "Speak connected users"
|
||||
},
|
||||
{
|
||||
@@ -82,7 +82,7 @@
|
||||
"description": "Delete item"
|
||||
},
|
||||
{
|
||||
"keys": "U",
|
||||
"keys": "Enter",
|
||||
"description": "Use item"
|
||||
}
|
||||
]
|
||||
@@ -132,7 +132,7 @@
|
||||
},
|
||||
{
|
||||
"keys": "V",
|
||||
"description": "Set microphone gain"
|
||||
"description": "Set mic volume"
|
||||
},
|
||||
{
|
||||
"keys": "Shift+V",
|
||||
|
||||
@@ -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.22 R156";
|
||||
window.CHGRID_WEB_VERSION = "2026.02.22 R157";
|
||||
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
|
||||
window.CHGRID_TIME_ZONE = "America/Detroit";
|
||||
|
||||
@@ -16,7 +16,8 @@ export type MainModeCommand =
|
||||
| 'speakCoordinates'
|
||||
| 'openMicGainEdit'
|
||||
| 'calibrateMicrophone'
|
||||
| 'useItemOrUsersSummary'
|
||||
| 'useItem'
|
||||
| 'speakUsers'
|
||||
| 'addItem'
|
||||
| 'locateOrListItems'
|
||||
| 'pickupDropOrDelete'
|
||||
@@ -46,7 +47,8 @@ export function resolveMainModeCommand(code: string, shiftKey: boolean): MainMod
|
||||
if (code === 'Minus' || code === 'NumpadSubtract') return 'effectValueDown';
|
||||
if (code === 'KeyC') return 'speakCoordinates';
|
||||
if (code === 'KeyV') return shiftKey ? 'calibrateMicrophone' : 'openMicGainEdit';
|
||||
if (code === 'KeyU') return 'useItemOrUsersSummary';
|
||||
if (code === 'Enter') return 'useItem';
|
||||
if (code === 'KeyU') return 'speakUsers';
|
||||
if (code === 'KeyA') return 'addItem';
|
||||
if (code === 'KeyI') return 'locateOrListItems';
|
||||
if (code === 'KeyD') return 'pickupDropOrDelete';
|
||||
|
||||
@@ -1376,15 +1376,7 @@ function handleNormalModeInput(code: string, shiftKey: boolean): void {
|
||||
case 'calibrateMicrophone':
|
||||
void calibrateMicInputGain();
|
||||
return;
|
||||
case 'useItemOrUsersSummary':
|
||||
if (shiftKey) {
|
||||
const allUsers = [state.player.nickname, ...Array.from(state.peers.values()).map((p) => p.nickname)];
|
||||
const label = allUsers.length === 1 ? 'user' : 'users';
|
||||
updateStatus(`${allUsers.length} ${label}: ${allUsers.join(', ')}`);
|
||||
audio.sfxUiBlip();
|
||||
return;
|
||||
}
|
||||
{
|
||||
case 'useItem': {
|
||||
const carried = getCarriedItem();
|
||||
if (carried) {
|
||||
useItem(carried);
|
||||
@@ -1404,6 +1396,13 @@ function handleNormalModeInput(code: string, shiftKey: boolean): void {
|
||||
beginItemSelection('use', usable);
|
||||
return;
|
||||
}
|
||||
case 'speakUsers': {
|
||||
const allUsers = [state.player.nickname, ...Array.from(state.peers.values()).map((p) => p.nickname)];
|
||||
const label = allUsers.length === 1 ? 'user' : 'users';
|
||||
updateStatus(`${allUsers.length} ${label}: ${allUsers.join(', ')}`);
|
||||
audio.sfxUiBlip();
|
||||
return;
|
||||
}
|
||||
case 'addItem': {
|
||||
const itemTypeSequence = getItemTypeSequence();
|
||||
if (itemTypeSequence.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user