Re: Programattically turning off key bindings
Turku Ting <[email protected]>
| Newsgroups | gmane.comp.window-managers.openbox |
|---|---|
| Message-ID | <20131228194900.280dd7f6@min> |
bruce, an interesting reply you got there from robert. i don't understand the first part of what he wrote at all, but i looked into this: http://openbox.org/wiki/Help:Bindings#Key_quoting_with_Chroots and it seems to do more than 50% of what you're trying to achieve. let us know how you're getting on with it! whichever the solution, i suspect that it will only work while your application is running, as oppposed to while its window is focused. you can use xdotool at the beginning & end of your script to send the key C-A-q (or whichever key you bind to "BreakChroot"). greetings, tt. On Fri, 27 Dec 2013 14:43:01 -0500 "Robert ." <[email protected]> wrote: > There is a key expansion app "x neural switched" when so configured. It is > a spelling correction app for non-native speaker of the language or using > the wrong keyboard. You have to turn that stuff off. X Neural Switcher > for Gnome, GTK2 frontend for Xneur. A. C. Kuznetsov and N. Yankin. > > There is an action to toggle off and on all keybindings in openbox. Here > is what I do: > <keybind key="c-a-q" chroot="true"> > <keybind key="c-a-q"><action name="BreakChroot"/></keybind> > </keybind> > > > > > On Fri, Dec 27, 2013 at 1:02 AM, Bruce <[email protected]> wrote: > > > Hi openbox, > > > > I have never written here before, so hello from sunny South Australia! > > > > > > I use an LXDE/Openbox system and am programming a script editing > > application for my own use. > > > > I want to use the meta(/super/W) key within the program to "expand" text > > entered based on some macros. So [meta+A] would expand to some text in > > the editor like "1. Navigate to the blah-blah window." etc. > > > > The problem is that the standard openbox keybindings get in the way. So > > what I'd like to know is, is there a library I could use to disable the > > standard key bindings, but only inside that program. > > > > regards > > Bruce > > > > _______________________________________________ > > openbox mailing list > > [email protected] > > http://icculus.org/mailman/listinfo/openbox > > _______________________________________________ openbox mailing list [email protected] http://icculus.org/mailman/listinfo/openbox