Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[unsolved]kahakai and keybindings --- Alt+F4 problem
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Qubax
Guru
Guru


Joined: 19 Jul 2002
Posts: 451
Location: Tirol, Austria

PostPosted: Fri Sep 26, 2003 12:21 pm    Post subject: [unsolved]kahakai and keybindings --- Alt+F4 problem Reply with quote

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
View user's profile Send private message
almostlucky
n00b
n00b


Joined: 10 Jun 2002
Posts: 33

PostPosted: Fri Sep 26, 2003 2:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
mackstann
n00b
n00b


Joined: 12 Jun 2003
Posts: 50
Location: Iowa, US

PostPosted: Fri Sep 26, 2003 2:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Qubax
Guru
Guru


Joined: 19 Jul 2002
Posts: 451
Location: Tirol, Austria

PostPosted: Tue Sep 30, 2003 10:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
princeofchaos
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2003
Posts: 107

PostPosted: Tue Sep 30, 2003 11:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
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