diff options
| -rw-r--r-- | boxes.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -472,7 +472,7 @@ struct item | |||
| 472 | { | 472 | { |
| 473 | char *text; // What's shown to humans. | 473 | char *text; // What's shown to humans. |
| 474 | struct key *key; // Shortcut key while the menu is displayed. | 474 | struct key *key; // Shortcut key while the menu is displayed. |
| 475 | // If there happens to be a key bound to the same command, the menu system should find that and show it to. | 475 | // If there happens to be a key bound to the same command, the menu system should find that and show it to. |
| 476 | char type; | 476 | char type; |
| 477 | union | 477 | union |
| 478 | { | 478 | { |
| @@ -502,7 +502,7 @@ struct _event | |||
| 502 | struct // scroll contents | 502 | struct // scroll contents |
| 503 | { | 503 | { |
| 504 | int X, Y; | 504 | int X, Y; |
| 505 | } scroll; | 505 | } scroll; |
| 506 | // TODO - might need events for - leave box, enter box. Could use a new event type "command with arguments"? | 506 | // TODO - might need events for - leave box, enter box. Could use a new event type "command with arguments"? |
| 507 | }; | 507 | }; |
| 508 | }; | 508 | }; |
| @@ -1818,7 +1818,7 @@ void editLine(view *view, int16_t X, int16_t Y, int16_t W, int16_t H) | |||
| 1818 | 1818 | ||
| 1819 | // TODO - Should only ask for a time out after we get an Escape. | 1819 | // TODO - Should only ask for a time out after we get an Escape. |
| 1820 | p = poll(pollfds, pollcount, 100); // Timeout of one tenth of a second (100). | 1820 | p = poll(pollfds, pollcount, 100); // Timeout of one tenth of a second (100). |
| 1821 | if (0 > p) perror_exit("poll"); | 1821 | if (0 > p) perror_exit("poll"); |
| 1822 | if (0 == p) // A timeout, trigger a time event. | 1822 | if (0 == p) // A timeout, trigger a time event. |
| 1823 | { | 1823 | { |
| 1824 | if ((1 == i) && ('\x1B' == buffer[0])) | 1824 | if ((1 == i) && ('\x1B' == buffer[0])) |
