然后它将成为Fl::focus() widget ,并获得FL_KEYDOWN、FL_KEYUP和FL_UNFOCUS事件。 focus 改变,要么因为窗口管理器改变了哪个窗口获得 focus ,要么因为用户尝试使用Tab键、箭头键或其他键进行导航。您可以使用Fl::event_key()来确定它为什么移动。对于导航,它将是按下的键,对于与窗口管理器的交互,它将是零。 F...
// Make main window appear when "opened" via Alt+Tab or Taskbar dock_win.handle({ let mut win = win.clone(); move |wself, event| match (event) { move |_wself, event| match event { enums::Event::Focus => { let win_shape = prep_shape(win.w(), win.h()); @@ -123,5 ...
"can", "em", "sub", "esc", "fs", "gs", "rs", "us"};static char* undobuffer;static int undobufferlength;static Fl_Text_Buffer* undowidget;static int undoat; // points after insertionstatic int undocut; // number of characters deleted there...