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,14 +136,19 @@ class _HomeHotKeysState extends State<HomeHotKeys> {
|
|||||||
),
|
),
|
||||||
|
|
||||||
// Scale up/down the app
|
// Scale up/down the app
|
||||||
HotKeyItem(
|
// 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(
|
hotKey: HotKey(
|
||||||
KeyCode.equal,
|
keycode,
|
||||||
modifiers: [Platform.isMacOS ? KeyModifier.meta : KeyModifier.control],
|
modifiers: [
|
||||||
|
Platform.isMacOS ? KeyModifier.meta : KeyModifier.control,
|
||||||
|
],
|
||||||
scope: HotKeyScope.inapp,
|
scope: HotKeyScope.inapp,
|
||||||
),
|
),
|
||||||
keyDownHandler: (_) => _scaleWithStep(0.1),
|
keyDownHandler: (_) => _scaleWithStep(0.1),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
|
||||||
HotKeyItem(
|
HotKeyItem(
|
||||||
hotKey: HotKey(
|
hotKey: HotKey(
|
||||||
|
Loading…
Reference in New Issue
Block a user