From: Good Guy Date: Tue, 9 Oct 2018 02:16:22 +0000 (-0600) Subject: repair utf8 keycode vs wkey syms X-Git-Url: https://git.cinelerra-gg.org/git/?a=commitdiff_plain;h=0f8dc862440439b96c65bed178f2457f6f1cc079;p=goodguy%2Fhistory.git repair utf8 keycode vs wkey syms --- diff --git a/cinelerra-5.1/guicast/bctextbox.C b/cinelerra-5.1/guicast/bctextbox.C index e2af4cbe..a7c8f5f7 100644 --- a/cinelerra-5.1/guicast/bctextbox.C +++ b/cinelerra-5.1/guicast/bctextbox.C @@ -1130,12 +1130,12 @@ void BC_TextBox::default_keypress(int &dispatch_event, int &result) case KPINS: key = '0'; goto kpchr; case KP1: case KP2: case KP3: case KP4: case KP5: case KP6: case KP7: case KP8: case KP9: - key = key - KP1 + '1'; goto kpchr; - default: - if( key < 32 || key > 255 ) return; + key = key - KP1 + '1'; kpchr: { wkeys[0] = key; wkeys[1] = 0; len = 1; break; } + default: + if( key < 32 || key > 255 ) return; } insert_text(wkeys, len); find_ibeam(1);