small size update with tons of rendering modes, palettes and keybindings
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { useEffect } from 'react';
|
||||
import { uiState } from '../stores/ui';
|
||||
import { $shader, setShaderCode } from '../stores/shader';
|
||||
import { $appSettings, cycleValueMode } from '../stores/appSettings';
|
||||
import { $appSettings, cycleValueMode, randomizeVisualSettings } from '../stores/appSettings';
|
||||
import { FakeShader } from '../FakeShader';
|
||||
|
||||
export function useKeyboardShortcuts() {
|
||||
@ -31,6 +31,8 @@ export function useKeyboardShortcuts() {
|
||||
} else if (e.key === '?') {
|
||||
const ui = uiState.get();
|
||||
uiState.set({ ...ui, helpPopupOpen: true });
|
||||
} else if (e.key === 'g' || e.key === 'G') {
|
||||
randomizeVisualSettings();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user