swap key bindings for key1 and key2. both bindings must exist. */
| 2192 | |
| 2193 | /* swap key bindings for key1 and key2. both bindings must exist. */ |
| 2194 | staticfn void |
| 2195 | cmdbind_swapkeys(uchar key1, uchar key2) |
| 2196 | { |
| 2197 | struct Cmd_bind *bind1 = cmdbind_get(key1); |
| 2198 | struct Cmd_bind *bind2 = cmdbind_get(key2); |
| 2199 | |
| 2200 | if (bind1 && bind2) { |
| 2201 | bind1->key = key2; |
| 2202 | bind2->key = key1; |
| 2203 | } |
| 2204 | } |
| 2205 | |
| 2206 | /* return number of extended commands bound to a non-default key */ |
| 2207 | int |
no test coverage detected