Merge pull request #2578

38d412a components: handle enter and return (selsta)
This commit is contained in:
luigi1111
2019-12-19 19:19:32 -05:00
4 changed files with 9 additions and 0 deletions

View File

@@ -110,6 +110,8 @@ Item {
color: MoneroComponents.Style.blackTheme ? "black" : "#A9FFFFFF"
}
Keys.enabled: root.visible
Keys.onEnterPressed: Keys.onReturnPressed(event)
Keys.onReturnPressed: {
root.close()
root.accepted()