Andrea Campanella
Committed by Gerrit Code Review

ONOS-3731 new keybindings in pathpainter app for selecting src and dst

Change-Id: I606f75e6e9adb7bc70bf82ea59e3d39373ea5b93
......@@ -152,17 +152,16 @@
// Key bindings for traffic overlay buttons
// NOTE: fully qual. button ID is derived from overlay-id and key-name
// FIXME: use into [ and ] instead of 1 and 2
// FIXME: find better keys for shortest paths & disjoint paths modes
keyBindings: {
1: {
openBracket: {
cb: function () {
pps.setSrc(selection);
},
tt: 'Set source node',
gid: '*src'
},
2: {
closeBracket: {
cb: function () {
pps.setDst(selection);
},
......@@ -213,7 +212,7 @@
},
_keyOrder: [
'1', '2', '3', '4', '5', '6', 'leftArrow', 'rightArrow'
'openBracket', 'closeBracket', '3', '4', '5', '6', 'leftArrow', 'rightArrow'
]
},
......