Fix random shortcuts getting triggered
Caused the "window bounces when typing text" bug
This commit is contained in:
parent
6953250e50
commit
e506a70767
1
TODO.md
1
TODO.md
|
@ -13,7 +13,6 @@
|
||||||
- Fixes
|
- Fixes
|
||||||
- make install
|
- make install
|
||||||
- Make uvloop optional
|
- Make uvloop optional
|
||||||
- Icons on KDE
|
|
||||||
- Distribute fonts
|
- Distribute fonts
|
||||||
- Backspace bug
|
- Backspace bug
|
||||||
- Add missing shortcuts to config file
|
- Add missing shortcuts to config file
|
||||||
|
|
|
@ -43,12 +43,15 @@ Item {
|
||||||
|
|
||||||
if (! shortcut.enabled) continue
|
if (! shortcut.enabled) continue
|
||||||
|
|
||||||
if (typeof(shortcut.sequences) == "string" &&
|
if (typeof(shortcut.sequences) == "string") {
|
||||||
sequenceMatches(event, shortcut.sequences)) return shortcut
|
return sequenceMatches(event, shortcut.sequences) ?
|
||||||
|
shortcut : null
|
||||||
|
}
|
||||||
|
|
||||||
for (let i = 0; i < shortcut.sequences.length; i++) {
|
for (let i = 0; i < shortcut.sequences.length; i++) {
|
||||||
if (sequenceMatches(event, shortcut.sequences[i]))
|
if (sequenceMatches(event, shortcut.sequences[i])) {
|
||||||
return shortcut
|
return shortcut
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
|
|
|
@ -14,10 +14,10 @@ Rectangle {
|
||||||
property alias shortcuts: shortcuts
|
property alias shortcuts: shortcuts
|
||||||
property alias sidePane: sidePane
|
property alias sidePane: sidePane
|
||||||
property alias pageLoader: pageLoader
|
property alias pageLoader: pageLoader
|
||||||
property alias pressAnimation: _pressAnimation
|
property alias pressAnimation: pressAnimation
|
||||||
|
|
||||||
SequentialAnimation {
|
SequentialAnimation {
|
||||||
id: _pressAnimation
|
id: pressAnimation
|
||||||
HNumberAnimation {
|
HNumberAnimation {
|
||||||
target: mainUI; property: "scale"; from: 1.0; to: 0.9
|
target: mainUI; property: "scale"; from: 1.0; to: 0.9
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user