<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Oct 12, 2014 at 10:52 AM, Mikael Magnusson <span dir="ltr"><<a href="mailto:mikachu@gmail.com" target="_blank">mikachu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sun, Oct 12, 2014 at 2:20 PM, Walter Alejandro Iglesias<br>
<<a href="mailto:eloi@roquesor.com">eloi@roquesor.com</a>> wrote:<br>
>> > On Sun, Oct 12, 2014 at 01:17:29AM +0200, Mikael Magnusson wrote:<br>
>> > A title bar in a maximized xterm doesn't bother.  The problem is that<br>
>> > solution isn't useful with i.e. mplayer.<br>
>><br>
>> <a href="http://openbox.org/wiki/Help:Actions#ToggleDecorations" target="_blank">http://openbox.org/wiki/Help:Actions#ToggleDecorations</a><br>
><br>
> I'm lost.  Again, decorations don't bother me.<br>
<br>
</span>I interpreted your reply to mean that the unfullscreen and maximize<br>
wouldn't work for mplayer because you don't want the title bar on it,<br>
which the toggledecor/disabledecor actions would solve.<br>
<span class=""><br>
>> vi keys are useless if you're not using the qwert* layout. I trivially<br>
>> know it won't make everyone happy since it won't make me happy :P.<br>
><br>
> Well that's a point.  I've never thought about it, how do those that<br>
> don't use the querty layout manage in unix userland?  What do you you<br>
> use in your shell?  Arrows and Del keys?  What text editor do you use?<br>
> What keys do you use to navigate ncurses interfaces?  Anyway, in menu<br>
> openbox case (and fluxbox) you're condemned to move your hand out of the<br>
> keyboard to reach arrow keys.  Why to make others suffer your fate? :-)<br>
<br>
</span>Vim allows you to rebind keys, and ctrl-c isn't really a unix thing<br>
anyway. ctrl/alt-[uyk] are all still reachable with one hand, as are<br>
ctrl-[ae]. ctrl-b isn't, but that one's already uncomfortable on<br>
qwerty.<br>
<br>
In my shell I use alt-[chtn] (ijkl in qwerty) as arrow key analogues.<br>
<br>
Actually I don't think changing the keybinds dynamically for menus<br>
would be that much work, the code is pretty straightforward iirc, I'm<br>
just lazy. ;)<br>
<br>
Assuming we do allow people to customize the bindings, it doesn't<br>
necessarily mean they'll rebind it to alphanumeric keys, so disabling<br>
accelerators should be a separate option. Thinking about it a bit<br>
more, we don't need to disable them. Even if you use hjkl for<br>
movement, we can allow shift-letter to activate the accelerator (or<br>
any other modkey). So we could have a <acceleratorKey> which defaults<br>
to being empty (current behaviour), and then a bunch of <moveUpKey>,<br>
<acceptEntryKey> etc. (which could also accept modkeys if you prefer<br>
to leave accelerators unshifted.) Does anyone see any problems with<br>
this scheme? (Note that ctrl is already taken, it means to activate an<br>
entry and leave the menu open.) (Would anyone want to customize this<br>
as well?)<br></blockquote><div><br></div><div>Or you could make menu items pick a different letter than the hotkeys, when they are picking one automatically. And ignore the hotkey if the menu file specified it and it conflicts. That's a little simpler and might be enough?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
If anyone wants to have a go, look at event_handle_menu_input in<br>
event.c, and add a bunch of options in config.c in the <menu> section<br>
or <keyboard> section, not sure which makes more sense right now. Eg,<br>
the keepMenuOpenKey (ctrl) applies to mouse events as well.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Mikael Magnusson<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
</div></div></blockquote></div><br></div></div>