From: Takaaki T. <tt...@kt...> - 2001-11-28 12:01:17
|
At Tue, 27 Nov 2001 21:59:10 -0500, Kent Dahl <ke...@st...> wrote: > I've got most of the "Simple Text Editor" sample application in FLTK up > and running in Ruby-FLTK, however it does require the newest cvs (+ > implementation of Fltk.input, which I sent a naive version of on the > devel list.) I'd like to provide the ruby-fltk with your editor. Can I absorb it? > "^n" which mean Ctrl+n, but I'm not sure how to do all the various > shortcuts that are shown in the tutorial. > It has (FL_ALT + 's') and (FL_ALT + FL_SHIFT + 's') > Ideally, I think it should be possible to have a method you pass in the > Fltk::ALT constant with the character to some "shortcut creator", so > that we don't end up with more > regexp-look-alike magical character sequences ;-) "#s" and "+s" mean FL_ALT + 's' and FL_SHIFT + 's' respectively. But I fixed Menu_#add() so that we can pass an integer value like this: @menu.add("file/exit2", FLTK::CTRL + ?q){ exit(0) } This line is a part of test/menu_bar.rb I modified today. Thank you for your advice. -- Takaaki Tateishi <tt...@kt...> |