diff --git a/24_day/bootpack.c b/24_day/bootpack.c index f24570d..0bff4b5 100644 --- a/24_day/bootpack.c +++ b/24_day/bootpack.c @@ -282,6 +282,11 @@ void HariMain(void) if (0 <= x && x < sht->bxsize && 0 <= y && y < sht->bysize) { if (sht->buf[y * sht->bxsize + x] != sht->col_inv) { sheet_updown(sht, shtctl->top - 1); + if (sht != key_win) { + cursor_c = keywin_off(key_win, sht_win, cursor_c, cursor_x); + key_win = sht; + cursor_c = keywin_on(key_win, sht_win, cursor_c);/*到此结束*/ + } if (3 <= x && x < sht->bxsize - 3 && 3 <= y && y < 21) { mmx = mx; /*进入窗口移动模式*/ mmy = my;