24 Jun
2009
24 Jun
'09
7:48 p.m.
On Wed, Jun 24, 2009 at 05:13:51AM +0000, corvid wrote:
Here is an idea for viewport keybindings.
It just builds a SimpleVector once and lets all of the viewports point to it, which I think goes against the dillo/dw boundary rules, but we'll see how the general idea goes over...
Well, that's one way to do it... I'm more inclined to have an scrolling keys enum in fltkviewport.hh, and to export another scrollTo() function that receives them as parameter. Then we can catch the shortcut in UI::handle(), and map between KEYS_* and the enum in a function like a_UIcmd_set_scroll_xy(). That avoids stepping over the dillo/dw boundaries. -- Cheers Jorge.-