[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

3301.0. "Rebound Keysyms, caplock woes" by USWS::HOLT (Robert Holt ISVG West) Tue Sep 04 1990 14:56

 I am using XRebindKeysym in order to redefine the F1-F10 keys
 for a particular application. 

 However, I am finding that this causes XLookupString to return no
 string if the capslock key or shift keys are down.

 I simply want XLookupString to return my (one) definition regardless
 of the state of the modifier keys.. Is is necessary to change the
 key mapping completely to have the desired functionality?

T.RTitleUserPersonal
Name
DateLines
3301.1HANNAH::MESSENGERBob MessengerTue Sep 04 1990 15:257
Re: .0

Is this on PC DECwindows?  I think their keymap defines shift-F1 as F11,
shift-F2 as F12, etc.  You'll probably need to remove those bindings from
your keymap.

				-- Bob
3301.2on a PMAX..USWS::HOLTRobert Holt ISVG WestTue Sep 04 1990 16:522
    
    this is ULTRIX/RISC, UWS4.0, dxterm...
3301.3HANNAH::MESSENGERBob MessengerTue Sep 04 1990 18:077
Re: .2

You'll probably have to rebind every combination of the modifier keys.  I
haven't used XRebindKeysym, though, so it's also possible that I'm completely
off base.

				-- Bob
3301.4USWS::HOLTRobert Holt ISVG WestTue Sep 04 1990 22:386
    
    Before rebinding my function keys, I save the modifier 
    mapping using XGetModifierMapping, and restore it afterward with
    XSetModifierMapping...
    
    Absolutely no effect... is this behavior a bug?
3301.5OXNARD::KLEEKen LeeWed Sep 05 1990 14:178
    Re .3:  I think Bob is correct in that you must specify all the modifier
    combinations to get all the modified keys rebound.
    
    Re .4:  What effect are you expecting by reinstalling the same modifier
    map?  Since rebinding the function keys does not affect the modifier keys,
    reinstalling the same modifier map should have no effect.
    
    Ken
3301.6USWS::HOLTRobert Holt ISVG WestWed Sep 05 1990 16:457
    
    I was able to work around by trapping the func keys and setting a 
    character value appropriately. 
    
    But I'd still like to understand what is required to "rebind every
    combination of modifier keys". 
    
3301.7OXNARD::KLEEKen LeeWed Sep 05 1990 17:246
    The 3rd argument to XRebindKeysym is a list of modifier keysyms
    associated with the rebinding.  Only when ALL these modifiers are
    pressed WITH the specified key will the rebound string be generated.
    
    Ken
    
3301.8SX4GTO::HOLTRobert Holt ISVG WestThu Sep 06 1990 16:555
    
    So if you rebind the string, you lose optional use of modifier keys...
    
    This is inconvenient...
    
3301.9OXNARD::KLEEKen LeeThu Sep 06 1990 18:127
    Re: .8
    No, the rebinding only affects the key when used with the specified
    modifiers.  No other modifiers with that key are affected.  You are
    free to use the other modifier combinations for anything you wish.
    
    Ken