mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-03 19:21:39 +00:00
Add zooming functionality (#140)
This commit is contained in:
parent
72099cb1fe
commit
d7ca25525c
5 changed files with 74 additions and 4 deletions
|
|
@ -28,6 +28,8 @@ const BINDINGS_MAP: Record<BindingActions, string> = {
|
|||
volumeDown: 'Volume down',
|
||||
volumeMute: 'Volume mute',
|
||||
volumeUp: 'Volume up',
|
||||
zoomIn: 'Zoom in',
|
||||
zoomOut: 'Zoom out',
|
||||
};
|
||||
|
||||
const HotkeysContainer = styled.div`
|
||||
|
|
@ -65,6 +67,8 @@ export const HotkeyManagerSettings = () => {
|
|||
else if (e.key === '/') keys.push('numpaddivide');
|
||||
else if (e.key === '.') keys.push('numpaddecimal');
|
||||
else keys.push(`numpad${e.key}`.toLowerCase());
|
||||
} else if (e.key === '+') {
|
||||
keys.push('equal');
|
||||
} else {
|
||||
keys.push(e.key?.toLowerCase());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue