fix settings modal keybind

This commit is contained in:
HF 2020-04-30 19:02:24 +02:00
parent d92bd4f2d4
commit 19fb12df6a
2 changed files with 5 additions and 2 deletions

View File

@ -121,12 +121,13 @@ function SettingsModal({
<SettingsItem <SettingsItem
title="Show Pixel Activity" title="Show Pixel Activity"
description="Show circles where pixels are placed." description="Show circles where pixels are placed."
keyBind="C" keyBind="X"
value={isPixelNotifyShown} value={isPixelNotifyShown}
onToggle={onTogglePixelNotify} onToggle={onTogglePixelNotify}
/> />
<SettingsItem <SettingsItem
title="Disable Game Sounds" title="Disable Game Sounds"
// eslint-disable-next-line max-len
description="All sound effects except Chat Notification will be disabled." description="All sound effects except Chat Notification will be disabled."
keyBind="M" keyBind="M"
value={isMuted} value={isMuted}
@ -140,12 +141,14 @@ function SettingsModal({
/> />
<SettingsItem <SettingsItem
title="Auto Zoom In" title="Auto Zoom In"
// eslint-disable-next-line max-len
description="Zoom in instead of placing a pixel when you tap the canvas and your zoom is small." description="Zoom in instead of placing a pixel when you tap the canvas and your zoom is small."
value={autoZoomIn} value={autoZoomIn}
onToggle={onToggleAutoZoomIn} onToggle={onToggleAutoZoomIn}
/> />
<SettingsItem <SettingsItem
title="Compact Palette" title="Compact Palette"
// eslint-disable-next-line max-len
description="Display Palette in a compact form that takes less screen space." description="Display Palette in a compact form that takes less screen space."
value={compactPalette} value={compactPalette}
onToggle={onToggleCompactPalette} onToggle={onToggleCompactPalette}

View File

@ -131,7 +131,7 @@ export default function user(
channelMessages = channelMessages.slice(-50); channelMessages = channelMessages.slice(-50);
} }
channelMessages = channelMessages.concat([ channelMessages = channelMessages.concat([
[name, text, country] [name, text, country],
]); ]);
chatMessages[channel] = channelMessages; chatMessages[channel] = channelMessages;
return { return {