Commit 7f21b0d6 authored by Alberto Mardegan's avatar Alberto Mardegan
Browse files

ViewerPage, OsdRow: show keyboard when requested

parent cf187e55
......@@ -5,11 +5,17 @@ import QtQuick.Layouts 1.3
RowLayout {
id: root
signal oskRequested()
signal toggleFullScreenRequested()
signal moveViewRequested()
anchors.fill: parent
OsdButton {
iconSource: "qrc:/icons/keyboard"
onClicked: root.oskRequested()
}
Item { Layout.fillWidth: true }
OsdButton {
......
......@@ -30,6 +30,7 @@ Page {
edge: Qt.BottomEdge
OsdRow {
onOskRequested: { drawer.close(); root.showKeyboard() }
onToggleFullScreenRequested: {
drawer.close();
root.toggleFullScreen()
......@@ -51,6 +52,11 @@ Page {
}
}
function showKeyboard() {
viewer.forceActiveFocus()
Qt.inputMethod.show()
}
function enableMoveViewMode() {
zoomPanHandler.moveViewMode = true
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment