Menu

Redefining hotkeys (via. Hotkeys.C)

Help
Pat Notz
2000-06-26
2000-06-27
  • Pat Notz

    Pat Notz - 2000-06-26

    Hi,

    I'd like to reserve the "Right-Alt Up" and "Right-Alt Down" key sequences for reading news in Netscape / Communicator.  I tired replacing the FL_ALT in the FL_ALT+Up and FL_ALT+Down definitons (defined to lower the active window) in Hotkeys.C with FL_Alt_R but that didn't seem to work.  The window manager gave a "beep" and then produced some odd text in the xterm I had open.

    Any ideas on what is wrong with this or what I could do to achieve the desired result?

    Thanks ~ pat

     
    • Bill Spitzak

      Bill Spitzak - 2000-06-26

      Unfortunately I don't think X allows you to 'grab' keys based on single shift keys, only on the shift flags which have merged together the left+right keys already.  The all-caps symbol FL_ALT is one of these shift bits.  The symbol FL_Alt_R is a number for that key (each key on the keyboard has a number) and cannot be or'd, so your program tried to handle some random bit mask and probably produced an X error.

      I did not know that Alt+up/down interfered with NetScape, I think this means that this should be removed from the defaults. I already removed Alt+left/right for the same reasons, though I'm a bit confused as to why KDE ever did this, since NetScape is certainly a program they wanted to have work.

       
      • Pat Notz

        Pat Notz - 2000-06-27

        Yeah, after I posted I looked back at the code and the context/syntax indicated the different data types.   Oh, well.  In Netscape's news reader you can use Alt-Up (Alt-Down) to selectect the previous (next) message ... Frankly, I'd rather have the Raise (Lower) feature in FLWM...

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.