- Timestamp:
- Dec 1, 2003, 2:22:36 PM (20 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 2e76340
- Parents:
- 3162c8a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
owl.c
rc9e72d1 r1fd4cd3e 557 557 if (j==ERR) { 558 558 usleep(10); 559 continue;560 }561 /* find and activate the current keymap.562 * TODO: this should really get fixed by activating563 * keymaps as we switch between windows...564 */565 if (pw && owl_popwin_is_active(pw) && owl_global_get_viewwin(&g)) {566 owl_context_set_popless(owl_global_get_context(&g),567 owl_global_get_viewwin(&g));568 owl_function_activate_keymap("popless");569 } else if (owl_global_is_typwin_active(&g)570 && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_ONELINE) {571 /*572 owl_context_set_editline(owl_global_get_context(&g), tw);573 owl_function_activate_keymap("editline");574 */575 } else if (owl_global_is_typwin_active(&g)576 && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_MULTILINE) {577 owl_context_set_editmulti(owl_global_get_context(&g), tw);578 owl_function_activate_keymap("editmulti");579 559 } else { 580 owl_context_set_recv(owl_global_get_context(&g)); 581 owl_function_activate_keymap("recv"); 582 } 583 /* now actually handle the keypress */ 584 ret = owl_keyhandler_process(owl_global_get_keyhandler(&g), j); 585 if (ret!=0 && ret!=1) { 586 owl_function_makemsg("Unable to handle keypress"); 560 /* find and activate the current keymap. 561 * TODO: this should really get fixed by activating 562 * keymaps as we switch between windows... 563 */ 564 if (pw && owl_popwin_is_active(pw) && owl_global_get_viewwin(&g)) { 565 owl_context_set_popless(owl_global_get_context(&g), 566 owl_global_get_viewwin(&g)); 567 owl_function_activate_keymap("popless"); 568 } else if (owl_global_is_typwin_active(&g) 569 && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_ONELINE) { 570 /* 571 owl_context_set_editline(owl_global_get_context(&g), tw); 572 owl_function_activate_keymap("editline"); 573 */ 574 } else if (owl_global_is_typwin_active(&g) 575 && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_MULTILINE) { 576 owl_context_set_editmulti(owl_global_get_context(&g), tw); 577 owl_function_activate_keymap("editmulti"); 578 } else { 579 owl_context_set_recv(owl_global_get_context(&g)); 580 owl_function_activate_keymap("recv"); 581 } 582 /* now actually handle the keypress */ 583 ret = owl_keyhandler_process(owl_global_get_keyhandler(&g), j); 584 if (ret!=0 && ret!=1) { 585 owl_function_makemsg("Unable to handle keypress"); 586 } 587 587 } 588 588 … … 601 601 } 602 602 } 603 604 owl_function_debugmsg("main loop iteration end"); 603 605 604 606 }
Note: See TracChangeset
for help on using the changeset viewer.