• Show log

    Commit

  • Hash : 1a930bf2
    Author : Ran Benita
    Date : 2012-08-07T00:20:40

    Add API to query whether a modifier is consumed
    
    Currently the user has no way of knowing which of the active modifiers
    have been used in the translation of a keycode to its keysyms. The use
    case is described in the GTK docs: say there's a menu accelerator
    activated by "<Alt>+". Some layouts have "+" shifted, and some have it
    on the first level. So in keymaps where "+" is shifted, the Shift
    modifier is consumed and must be ignored when the user is testing
    for "<Alt>+". Otherwise, we may get "<Alt><Shift>+" and the accelerator
    should not actually fire.
    
    For this we also use the preserve[] information in the key types, which
    can forces us to report modifiers as unconsumed even if they were used
    in the translation. Until now we didn't do anything with this
    information.
    
    The API tries to match its surronding. It's not very efficient but this
    can be fixed.
    
    Signed-off-by: Ran Benita <ran234@gmail.com>
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/libxkbcommon.git
    Git SSH git@git.kmx.io:kc3-lang/libxkbcommon.git
    Public access ? public
    Description

    keymap handling library for toolkits and window systems

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg_l thodg
    Tags