... | ... |
@@ -69,6 +69,9 @@ var knobsClass = { |
69 | 69 |
var object = state.objects[selected + state.scroll.offset]; |
70 | 70 |
var val = object.text; |
71 | 71 |
if (contains(object, 'choices')) { |
72 |
+ if ((d > 0 and val[size(val)-1] != `>`) |
|
73 |
+ or (d < 0 and val[0] != `<`)) |
|
74 |
+ return; |
|
72 | 75 |
forindex (var c; object.choices) |
73 | 76 |
if (object.choices[c] == val) { |
74 | 77 |
if (c == size(object.choices) - 1) val = object.choices[0]; |