Re: [E-devel] Super_L keybinding

2006-04-11 Thread The Rasterman
On Tue, 11 Apr 2006 00:11:07 -0400 dan sinclair [EMAIL PROTECTED] babbled:

 Carsten Haitzler (The Rasterman) wrote:
  On Mon, 10 Apr 2006 22:18:08 -0400 dan sinclair [EMAIL PROTECTED]
  babbled:
  
  Carsten Haitzler (The Rasterman) wrote:
   well - for the same reason it doesn't let you bind alt or shift or
   control - super and meta are modifier keys in x - they have special
   significance. sure - you can technically bind them and it happens to
   work (alt and shift too) but x's configuration is such that these keys
   AFFECT modifiers (like control, alt, shift etc.) and have special use.
   it' is a rare case that you want to bind a modifier itself (as this
   instantly removes its ability to be used as a modifier basically)
  
  True, it's rare, but it would be nice if we could support it. I noticed 
  after sending that patch that you can no longer use the win key as a 
  modifier. It would be nice to have both worlds, were it can be used as a 
  modifier or used as just a binding, but I don't know if that;s doable.
  
  it isn't actually doable. that's the problem.  that's why you can't bind it.
  you CAN remap your keyboard so it is no longer a modifer but some other
  normal key and then you get what you want - but for most people - this will
  be rare.
 
 You can bind it. I've bound it already. I've used the Super_L binding to 
 launch Eterm since e17 had bindings (and I used it in e16 as well). You 
 just couldn't do it through the UI. It always worked through 
 enlightenment_remote (at least last time I tried it). I've never done 
 any keymaping, so unless Gentoo does it by default, it does work.

it works thru e_remote more as a byproduct - but now u cant really use the key
as a modifier - as everytime u want to press it + another key - eterm runs :)
the reason the ui doesn't let you is.. it is EXPECTING u to press a real key
in addition to a modifer - if it gets a modifer key press.

 dan
 


-- 
- Codito, ergo sum - I code, therefore I am --
The Rasterman (Carsten Haitzler)[EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Super_L keybinding

2006-04-10 Thread dan sinclair

Hello,

I was wondering if there is a reason why, when using the keybinding 
configuration dialog, you can't bind to just the Super_L or Super_R keys 
anymore. I can do it through enlightenment_remote but the config panel 
dosen't accept it. (I typically bind Super_L to exec eterm.)


The attached patch will remove this limitation, but as I don't know that 
code I don't want to just apply it. Any reasons why this shouldn't go 
in? Or why it's currently setup this way?


Thanks,
dan
Index: src/bin/e_int_config_keybindings.c
===
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_keybindings.c,v
retrieving revision 1.17
diff -u -r1.17 e_int_config_keybindings.c
--- src/bin/e_int_config_keybindings.c	1 Apr 2006 09:24:56 -	1.17
+++ src/bin/e_int_config_keybindings.c	10 Apr 2006 18:46:04 -
@@ -1501,8 +1501,7 @@
 
   if (!strcmp(ev-keysymbol, Control_L) || !strcmp(ev-keysymbol, Control_R) ||
 	  !strcmp(ev-keysymbol, Shift_L) || !strcmp(ev-keysymbol, Shift_R) ||
-	  !strcmp(ev-keysymbol, Alt_L) || !strcmp(ev-keysymbol, Alt_R) ||
-	  !strcmp(ev-keysymbol, Super_L) || !strcmp(ev-keysymbol, Super_R))
+	  !strcmp(ev-keysymbol, Alt_L) || !strcmp(ev-keysymbol, Alt_R))
 	;
   else
 	{


Re: [E-devel] Super_L keybinding

2006-04-10 Thread Aleksej Struk
Hi Dan,

The reason why it is setuped in such a way is, because, I have
standard keyboard,
without any special keys, and, I wrote and tested this code with it. I
first time here about Super_L key. It seams that your patch is
correct. Moreover, some people were complaining that there is no
possibility to assigne sun keybord keys. Since I do not know all this
special key I implemented just common one. If somebody could point me
to the list of all this keys,
of course, I would add them to config dialog.

BTW, this is still hardcoded way of defining them. Probably there
should be a better way of checking keybord modifiers.

a.

On 4/10/06, dan sinclair [EMAIL PROTECTED] wrote:
 Hello,

 I was wondering if there is a reason why, when using the keybinding
 configuration dialog, you can't bind to just the Super_L or Super_R keys
 anymore. I can do it through enlightenment_remote but the config panel
 dosen't accept it. (I typically bind Super_L to exec eterm.)

 The attached patch will remove this limitation, but as I don't know that
 code I don't want to just apply it. Any reasons why this shouldn't go
 in? Or why it's currently setup this way?

 Thanks,
 dan





--
Aleksej Struk
Master Degree Student
Free University of Bozen-Bolzano
Faculty of Computer Science
phone: +39-0471-061749
cell phone: +39-3204627049
[EMAIL PROTECTED] [EMAIL PROTECTED] - http://www.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Super_L keybinding

2006-04-10 Thread The Rasterman
On Mon, 10 Apr 2006 14:51:08 -0400 dan sinclair [EMAIL PROTECTED] babbled:

 Hello,
 
 I was wondering if there is a reason why, when using the keybinding 
 configuration dialog, you can't bind to just the Super_L or Super_R keys 
 anymore. I can do it through enlightenment_remote but the config panel 
 dosen't accept it. (I typically bind Super_L to exec eterm.)

well - for the same reason it doesn't let you bind alt or shift or control -
super and meta are modifier keys in x - they have special significance. sure -
you can technically bind them and it happens to work (alt and shift too) but
x's configuration is such that these keys AFFECT modifiers (like control, alt,
shift etc.) and have special use. it' is a rare case that you want to bind a
modifier itself (as this instantly removes its ability to be used as a modifier
basically)

BUT - that code there does need fixing. it ASSUMES certain keys map to
the virtual modifiers that ecore_x maps things to (it tries to standardise
things to use ctrl, shift, alt and win - some keyboards don't have alt - like
apple, so it looks for other modifiers).

in ecore_x.c line 329 (approximately) - ecore_x does its mappings and
discovery. we need to add an inverse lookup to get valid keynames (maybe more
than one) for modifiers and locks. (ie request a list or array of strings that
are the names of keys that would produce that modifier). that would be the
correct way to do this. :)

 The attached patch will remove this limitation, but as I don't know that 
 code I don't want to just apply it. Any reasons why this shouldn't go 
 in? Or why it's currently setup this way?
 
 Thanks,
 dan
 


-- 
- Codito, ergo sum - I code, therefore I am --
The Rasterman (Carsten Haitzler)[EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Super_L keybinding

2006-04-10 Thread Nathan Ingersoll
On 4/10/06, The Rasterman Carsten Haitzler [EMAIL PROTECTED] wrote:

 BUT - that code there does need fixing. it ASSUMES certain keys map to
 the virtual modifiers that ecore_x maps things to (it tries to standardise
 things to use ctrl, shift, alt and win - some keyboards don't have alt - like
 apple, so it looks for other modifiers).

There is an Alt key on Apple keyboards, sometimes it's only labeled
Option, but it's usually Alt/Option.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Super_L keybinding

2006-04-10 Thread dan sinclair

Carsten Haitzler (The Rasterman) wrote:

On Mon, 10 Apr 2006 22:18:08 -0400 dan sinclair [EMAIL PROTECTED] babbled:


Carsten Haitzler (The Rasterman) wrote:
 well - for the same reason it doesn't let you bind alt or shift or control -
 super and meta are modifier keys in x - they have special significance.
 sure - you can technically bind them and it happens to work (alt and shift
 too) but x's configuration is such that these keys AFFECT modifiers (like
 control, alt, shift etc.) and have special use. it' is a rare case that you
 want to bind a modifier itself (as this instantly removes its ability to be
 used as a modifier basically)

True, it's rare, but it would be nice if we could support it. I noticed 
after sending that patch that you can no longer use the win key as a 
modifier. It would be nice to have both worlds, were it can be used as a 
modifier or used as just a binding, but I don't know if that;s doable.


it isn't actually doable. that's the problem.  that's why you can't bind it.
you CAN remap your keyboard so it is no longer a modifer but some other normal
key and then you get what you want - but for most people - this will be rare.


You can bind it. I've bound it already. I've used the Super_L binding to 
launch Eterm since e17 had bindings (and I used it in e16 as well). You 
just couldn't do it through the UI. It always worked through 
enlightenment_remote (at least last time I tried it). I've never done 
any keymaping, so unless Gentoo does it by default, it does work.


dan



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel