Initialize the menu to accept key input immediately on show
| 1269 | |
| 1270 | /// Initialize the menu to accept key input immediately on show |
| 1271 | void initialize_needs_key() |
| 1272 | { |
| 1273 | clear(); |
| 1274 | key.clear(); |
| 1275 | set_more(string("")); |
| 1276 | prompt = make_stringf( |
| 1277 | "Input trigger key to edit or create a %s:", |
| 1278 | parent.mode_name().c_str()); |
| 1279 | set_title(new MenuEntry(prompt, MEL_TITLE)); |
| 1280 | set_more("<lightgray>([<w>~</w>] to enter by keycode)</lightgray>"); |
| 1281 | doing_key_input = true; |
| 1282 | } |
| 1283 | |
| 1284 | void reset_key_prompt() |
| 1285 | { |
nothing calls this directly
no test coverage detected