Add shortcut to focus filter rooms field
This commit is contained in:
parent
43f8f4131d
commit
2e89dcae9e
2
TODO.md
2
TODO.md
|
@ -33,6 +33,8 @@
|
||||||
- Terrible performance using `QT_QPA_PLATFORM=wayland-egl`, must use `xcb`
|
- Terrible performance using `QT_QPA_PLATFORM=wayland-egl`, must use `xcb`
|
||||||
|
|
||||||
- UI
|
- UI
|
||||||
|
- Highlight selected account/room
|
||||||
|
|
||||||
- Popup:
|
- Popup:
|
||||||
- label size
|
- label size
|
||||||
- Accept/cancel buttons
|
- Accept/cancel buttons
|
||||||
|
|
|
@ -115,9 +115,10 @@ class UISettings(JSONConfigFile):
|
||||||
"theme": "Default.qpl",
|
"theme": "Default.qpl",
|
||||||
"writeAliases": {},
|
"writeAliases": {},
|
||||||
"keys": {
|
"keys": {
|
||||||
"reloadConfig": ["Alt+R"],
|
"reloadConfig": ["Alt+Shift+R"],
|
||||||
"scrollUp": ["Alt+Up", "Alt+K"],
|
"scrollUp": ["Alt+Up", "Alt+K"],
|
||||||
"scrollDown": ["Alt+Down", "Alt+J"],
|
"scrollDown": ["Alt+Down", "Alt+J"],
|
||||||
|
"filterRooms": ["Alt+R", "Ctrl+R"],
|
||||||
"startDebugger": ["Alt+Shift+D"],
|
"startDebugger": ["Alt+Shift+D"],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,6 +29,11 @@ Item {
|
||||||
onActivated: smartVerticalFlick(335)
|
onActivated: smartVerticalFlick(335)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Shortcut {
|
||||||
|
sequences: settings.keys ? settings.keys.filterRooms : []
|
||||||
|
onActivated: mainUI.sidePane.paneToolBar.filterField.forceActiveFocus()
|
||||||
|
}
|
||||||
|
|
||||||
Shortcut {
|
Shortcut {
|
||||||
sequences: settings.keys ? settings.keys.startDebugger : []
|
sequences: settings.keys ? settings.keys.startDebugger : []
|
||||||
onActivated: if (debugMode) { py.call("APP.pdb") }
|
onActivated: if (debugMode) { py.call("APP.pdb") }
|
||||||
|
|
|
@ -5,6 +5,7 @@ import "../Base"
|
||||||
HRowLayout {
|
HRowLayout {
|
||||||
id: toolBar
|
id: toolBar
|
||||||
|
|
||||||
|
property alias filterField: filterField
|
||||||
property alias roomFilter: filterField.text
|
property alias roomFilter: filterField.text
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
|
@ -10,6 +10,8 @@ HRectangle {
|
||||||
|
|
||||||
color: theme.sidePane.background
|
color: theme.sidePane.background
|
||||||
|
|
||||||
|
property alias paneToolBar: paneToolBar
|
||||||
|
|
||||||
property real autoWidthRatio: theme.sidePane.autoWidthRatio
|
property real autoWidthRatio: theme.sidePane.autoWidthRatio
|
||||||
property bool manuallyResizing: false
|
property bool manuallyResizing: false
|
||||||
property bool manuallyResized: false
|
property bool manuallyResized: false
|
||||||
|
|
|
@ -10,6 +10,8 @@ HRectangle {
|
||||||
color: theme.ui.background
|
color: theme.ui.background
|
||||||
Component.onCompleted: window.mainUI = mainUI
|
Component.onCompleted: window.mainUI = mainUI
|
||||||
|
|
||||||
|
property alias sidePane: sidePane
|
||||||
|
property alias pageStack: pageStack
|
||||||
property alias pressAnimation: _pressAnimation
|
property alias pressAnimation: _pressAnimation
|
||||||
|
|
||||||
SequentialAnimation {
|
SequentialAnimation {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user