View previous topic :: View next topic |
Author |
Message |
Qubax Guru
Joined: 19 Jul 2002 Posts: 451 Location: Tirol, Austria
|
Posted: Fri Sep 26, 2003 12:21 pm Post subject: [unsolved]kahakai and keybindings --- Alt+F4 problem |
|
|
i would like to have the same keybindings as in *box: Alt+Fx -> GotoDesktop x
so i've put this into the userconfig.py: Code: | return Configuration.globalKeyBindings(self) + [
(KeyPress(Super,'t'),'{Eterm --theme trans --shade 50 --buttonbar false --scrollbar false -f white --font-fx none --borderless}'),
(KeyPress(Super,'e'),'{emacs}'),
(KeyPress(Alt,'F1'),('GoToDesktop','0')),
(KeyPress(Alt,'F2'),('GoToDesktop','1')),
(KeyPress(Alt,'F3'),('GoToDesktop','2')),
(KeyPress(Alt,'F4'),('GoToDesktop','3'))
] |
the problem: Alt+F4 closes eterm,xterm,emacs ... , depending on the last program, when going to desktop4
how can i use these keybindings without closing programs? |
|
Back to top |
|
|
almostlucky n00b
Joined: 10 Jun 2002 Posts: 33
|
Posted: Fri Sep 26, 2003 2:08 pm Post subject: |
|
|
the problem is the default keybinding for closing an application is also Alt F4. Not sure how you would fix that though. |
|
Back to top |
|
|
mackstann n00b
Joined: 12 Jun 2003 Posts: 50 Location: Iowa, US
|
Posted: Fri Sep 26, 2003 2:54 pm Post subject: |
|
|
It's pretty hairy to go about undoing default keybindings, and that's why we totally reworked the whole system, I would recommend waiting for 0.5 (few days at most), or grabbing cvs. |
|
Back to top |
|
|
Qubax Guru
Joined: 19 Jul 2002 Posts: 451 Location: Tirol, Austria
|
Posted: Tue Sep 30, 2003 10:50 pm Post subject: |
|
|
now i'm running 0.5 and very happy. a great work.
at this place a want to continue the key-binding problem:
yes. with this version i can use Alt+F4 as a possible combination without killing many clients.
problem:
when playing ultima-online under wine, by pressing Alt+F4 (to change to soem other desktop) and coming back, the game get's somehow input, forcing it to change resolution everytime at pressing "enter". i know, that's a problem of wine/ultima. but there are no problems when using Super+F4 to change to an other desktop.
maybe i've found a little bug. i don't know, but wanted to tell ... |
|
Back to top |
|
|
princeofchaos Tux's lil' helper
Joined: 11 Jun 2003 Posts: 107
|
Posted: Tue Sep 30, 2003 11:57 pm Post subject: |
|
|
What may be happening is it's getting "key released" event which are not captured by Kahakai. You can create a simple "no op" function:
Code: |
def nop(*args):
pass
|
at the top level and use it like nop (without quotes) with KeyRelease('Alt_L') and KeyRelease('F4'). It's a little hackish but may work. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|