Skip to content

Commit 50d7003

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 a9b5829 commit 50d7003

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
@@ -139,7 +139,7 @@ Item {
139139
Keys.onPressed: {
140140
if (event.key === Qt.Key_F) {
141141
fit()
142-
} else if (event.key === Qt.Key_Delete) {
142+
} else if (event.key === Qt.Key_Delete || event.key === Qt.Key_Backspace) { // Backspace supports both Windows and MacOS Keyboards
143143
if (event.modifiers === Qt.AltModifier) {
144144
uigraph.removeNodesFrom(uigraph.selectedNodes)
145145
} else {

0 commit comments

Comments
 (0)