Skip to content

Commit 03e6d98

Browse files
committed
[ui] Graph: Added support for Node deletion with Backspace Key
In standard MacOS keyboards the backspace key is referred to as the delete key. Supporting both backspace and delete keys for delete operation in the graph ensures consistency across the different key layouts across devices.
1 parent 56e8b9c commit 03e6d98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meshroom/ui/qml/GraphEditor/GraphEditor.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Item {
112112
Keys.onPressed: function(event) {
113113
if (event.key === Qt.Key_F) {
114114
fit()
115-
} else if (event.key === Qt.Key_Delete) {
115+
} else if (event.key === Qt.Key_Delete || event.key === Qt.Key_Backspace) { // Backspace supports both Windows and MacOS Keyboards
116116
if (event.modifiers === Qt.AltModifier) {
117117
uigraph.removeNodesFrom(uigraph.getSelectedNodes())
118118
} else {

0 commit comments

Comments
 (0)