Skip to content

Properly fix the assignment of Control characters in keymap.tcl #170

@cwervo

Description

@cwervo

ab1541b fixes this issue but feels like a hack. I have a hunch that the proper fix is to avoid adding Control_* characters to the list of chars or modifying resolve directly but I can't grok or debug it well tonight.

folk/lib/keymap.tcl

Lines 214 to 224 in b410c06

# takes km, keycode and mod-bitfield, returns [ksym char] tuple
# char is printable representation of ksym, or "" if unprintable
proc resolve {km code mod} {
lassign $km ksyms chars
set kk "$code $mod"
if {![dict exists $ksyms $kk]} return
return [list [dict get $ksyms $kk] [dict_getdef $chars $kk ""]]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions