Add keybinds to scroll page up/down
This commit is contained in:
parent
927323909d
commit
6a540f6397
5
TODO.md
5
TODO.md
|
@ -11,7 +11,10 @@
|
|||
- When qml syntax highlighting supports ES6 string interpolation, use them
|
||||
|
||||
- Fixes
|
||||
- alt+n
|
||||
- Icons on KDE
|
||||
- Backspace bug
|
||||
- Add missing shortcuts to config file
|
||||
|
||||
- Show error if uploading avatar fails or file is corrupted
|
||||
|
||||
|
@ -25,6 +28,8 @@
|
|||
- Terrible performance using `QT_QPA_PLATFORM=wayland-egl`, must use `xcb`
|
||||
|
||||
- UI
|
||||
- Just use Shortcut onHeld instead of analyzing the current velocity
|
||||
in `smartVerticalFlick()`
|
||||
- Reduce icons brightness
|
||||
- Thinner expand arrow
|
||||
- Restore previous focus after closing right click context menu
|
||||
|
|
|
@ -113,6 +113,8 @@ class UISettings(JSONConfigFile):
|
|||
|
||||
"scrollUp": ["Alt+Up", "Alt+K"],
|
||||
"scrollDown": ["Alt+Down", "Alt+J"],
|
||||
"scrollPageUp": ["Alt+Ctrl+Up", "Alt+Ctrl+K", "PageUp"],
|
||||
"scrollPageDown": ["Alt+Ctrl+Down", "Alt+Ctrl+J", "PageDown"],
|
||||
|
||||
"focusSidePane": ["Alt+S", "Ctrl+S"],
|
||||
"clearRoomFilter": ["Alt+Shift+S", "Ctrl+Shift+S"],
|
||||
|
|
|
@ -32,6 +32,23 @@ HShortcutHandler {
|
|||
onHeld: pressed(event)
|
||||
}
|
||||
|
||||
HShortcut {
|
||||
sequences: settings.keys.scrollPageUp
|
||||
onPressed: Utils.smartVerticalFlick(
|
||||
flickTarget, -2.3 * flickTarget.height, 10,
|
||||
)
|
||||
onHeld: pressed(event)
|
||||
}
|
||||
|
||||
HShortcut {
|
||||
sequences: settings.keys.scrollPageDown
|
||||
onPressed: Utils.smartVerticalFlick(
|
||||
flickTarget, 2.3 * flickTarget.height, 10,
|
||||
)
|
||||
onHeld: pressed(event)
|
||||
}
|
||||
|
||||
|
||||
// SidePane
|
||||
|
||||
HShortcut {
|
||||
|
|
Loading…
Reference in New Issue
Block a user