On Sat, Feb 07, 2004 at 04:17:54PM +0200, Tuomo Valkonen wrote:
> On Sat, Feb 07, 2004 at 01:03:36PM +0100, [EMAIL PROTECTED] wrote:
> > i'd like to remove keybindings temporarily in order to work with those
> > difficult applications (eg. blender) while having simple bindings
> > (ALT+<char>) for ion functionality most of the time.
>
> Just bind the key to nil to remove the binding. You can also send
> bound keys to a window by quoting them with Mod1+K Q.
Tried the following, and it did not work (ion-2rc-20040206).
Did i misunderstand you?
appended to ion-bindings.lua:
genframe_bindings{ kpress(DEFAULT_MOD.."A", nil) }
resulting error on startup:
Unable to remove binding Mod1+A. Either you are trying to remove a
binding that has not been set or you're trying to bind to a nil function
> > any chance this will be possible in the direction you are heading?
>
> The direction I may be heading is to go back a little and use strings
> instead of direct function references in the bindings. This might make
> it a bit easier to configure Ion as it should not be necessary to learn
> that much Lua for simple configuration, and also make it easier to write
> configuration programs (the #1 reason for the change). The only problem
> is doing this cleanly, so that everything isn't duplicated and it doesn't
> feel too over-engineered.
sounds as if the functionality you need should be implemented not as an
alternative to using lua functions but as a layer on top of that.
ingo