mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: add key + as zoom-in key (#5628)
This commit is contained in:
parent
e4132ed217
commit
7d96c2dfd4
@ -136,13 +136,18 @@ class _HomeHotKeysState extends State<HomeHotKeys> {
|
||||
),
|
||||
|
||||
// Scale up/down the app
|
||||
HotKeyItem(
|
||||
hotKey: HotKey(
|
||||
KeyCode.equal,
|
||||
modifiers: [Platform.isMacOS ? KeyModifier.meta : KeyModifier.control],
|
||||
scope: HotKeyScope.inapp,
|
||||
// In some keyboards, the system returns equal as + keycode, while others may return add as + keycode, so add them both as zoom in key.
|
||||
...[KeyCode.equal, KeyCode.add].map(
|
||||
(keycode) => HotKeyItem(
|
||||
hotKey: HotKey(
|
||||
keycode,
|
||||
modifiers: [
|
||||
Platform.isMacOS ? KeyModifier.meta : KeyModifier.control,
|
||||
],
|
||||
scope: HotKeyScope.inapp,
|
||||
),
|
||||
keyDownHandler: (_) => _scaleWithStep(0.1),
|
||||
),
|
||||
keyDownHandler: (_) => _scaleWithStep(0.1),
|
||||
),
|
||||
|
||||
HotKeyItem(
|
||||
|
Loading…
Reference in New Issue
Block a user