Skip to content

Commit a6d9623

Browse files
authored
Merge pull request #2430 from alicevision/dev/shortcutsViewer2d
[ui] Shortcuts in Viewer2D and SequencePlayer
2 parents 601fbc5 + 6b6f620 commit a6d9623

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

meshroom/ui/qml/Viewer/SequencePlayer.qml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,4 +403,15 @@ FloatingPane {
403403
font: fpsTextInput.font
404404
text: "100 FPS"
405405
}
406+
407+
// Action to play/pause the sequence player
408+
Action {
409+
id: playPauseAction
410+
411+
shortcut: "Space"
412+
413+
onTriggered: {
414+
m.playing = !m.playing;
415+
}
416+
}
406417
}

meshroom/ui/qml/Viewer/Viewer2D.qml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,4 +1512,14 @@ FocusScope {
15121512
}
15131513
}
15141514
}
1515+
1516+
// Actions for Metadata overlay
1517+
Action {
1518+
id: metadataAction
1519+
1520+
shortcut: "I"
1521+
onTriggered: {
1522+
metadataCB.checked = !metadataCB.checked
1523+
}
1524+
}
15151525
}

0 commit comments

Comments
 (0)