Changeset 7a05b7c in pugl


Ignore:
Timestamp:
Oct 3, 2017, 7:20:52 AM (7 weeks ago)
Author:
David Robillard <d@…>
Branches:
master
Children:
7061664
Parents:
665dfdd
git-author:
David Robillard <d@…> (07/23/17 02:10:33)
git-committer:
David Robillard <d@…> (10/03/17 07:20:52)
Message:

Send zero instead of replacement char for invalid key strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pugl/pugl_osx.m

    r665dfdd r7a05b7c  
    438438    const NSString*    chars = [event characters];
    439439    const char*        str   = [chars UTF8String];
     440    const uint32_t     code  = puglDecodeUTF8((const uint8_t*)str);
    440441    PuglEventKey       ev    =  {
    441442        PUGL_KEY_PRESS,
     
    449450        getModifiers(puglview, event),
    450451        [event keyCode],
    451         puglDecodeUTF8((const uint8_t*)str),
     452        (code != 0xFFFD) ? code : 0,
    452453        keySymToSpecial(puglview, event),
    453454        { 0, 0, 0, 0, 0, 0, 0, 0 },
Note: See TracChangeset for help on using the changeset viewer.