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 @@ ...@@ -152,17 +152,16 @@
152 152
153 // Key bindings for traffic overlay buttons 153 // Key bindings for traffic overlay buttons
154 // NOTE: fully qual. button ID is derived from overlay-id and key-name 154 // NOTE: fully qual. button ID is derived from overlay-id and key-name
155 - // FIXME: use into [ and ] instead of 1 and 2
156 // FIXME: find better keys for shortest paths & disjoint paths modes 155 // FIXME: find better keys for shortest paths & disjoint paths modes
157 keyBindings: { 156 keyBindings: {
158 - 1: { 157 + openBracket: {
159 cb: function () { 158 cb: function () {
160 pps.setSrc(selection); 159 pps.setSrc(selection);
161 }, 160 },
162 tt: 'Set source node', 161 tt: 'Set source node',
163 gid: '*src' 162 gid: '*src'
164 }, 163 },
165 - 2: { 164 + closeBracket: {
166 cb: function () { 165 cb: function () {
167 pps.setDst(selection); 166 pps.setDst(selection);
168 }, 167 },
...@@ -213,7 +212,7 @@ ...@@ -213,7 +212,7 @@
213 }, 212 },
214 213
215 _keyOrder: [ 214 _keyOrder: [
216 - '1', '2', '3', '4', '5', '6', 'leftArrow', 'rightArrow' 215 + 'openBracket', 'closeBracket', '3', '4', '5', '6', 'leftArrow', 'rightArrow'
217 ] 216 ]
218 }, 217 },
219 218
......