... | ... |
@@ -46,11 +46,11 @@ |
46 | 46 |
orig (some-> cs :selected-history :orig) |
47 | 47 |
idx (some-> cs :selected-history :index) |
48 | 48 |
history-end (- (count history) 1) |
49 |
- next (case direction :back dec :fwd inc) |
|
49 |
+ next (case direction :backward dec :forward inc) |
|
50 | 50 |
at-first? (= idx history-end) |
51 | 51 |
at-last? (= idx 0) |
52 |
- going-forward? (= direction :fwd) |
|
53 |
- going-backward? (= direction :back) |
|
52 |
+ going-forward? (= direction :forward) |
|
53 |
+ going-backward? (= direction :backward) |
|
54 | 54 |
not-cycling? (-> cs :selected-history nil?)] |
55 | 55 |
(cond |
56 | 56 |
(empty? history) {:current current :selected-history nil} |
... | ... |
@@ -70,8 +70,8 @@ |
70 | 70 |
(fn [cmd [_ event]] |
71 | 71 |
(let [ |
72 | 72 |
direction (case (.-key event) |
73 |
- "ArrowUp" :back |
|
74 |
- "ArrowDown" :fwd |
|
73 |
+ "ArrowUp" :backward |
|
74 |
+ "ArrowDown" :forward |
|
75 | 75 |
nil)] |
76 | 76 |
(if direction |
77 | 77 |
(do (.preventDefault event) |