X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fshuttle.C;h=53b6527acd3bef06742d37f229f00730003befd6;hb=541ee122f5f7b959d54e1f891bcbbfce4b209bf7;hp=e8d5572b82571425656773bae387a40f34bc9d0c;hpb=23fd26a10f3d8ecb8c3879622d604ad9d2bbfe77;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/shuttle.C b/cinelerra-5.1/cinelerra/shuttle.C index e8d5572b..53b6527a 100644 --- a/cinelerra-5.1/cinelerra/shuttle.C +++ b/cinelerra-5.1/cinelerra/shuttle.C @@ -504,6 +504,8 @@ int Shuttle::send_keycode(unsigned key, unsigned msk, int press, int send) k->x = wx; k->y = wy; k->state = msk; +// also clear modifiers state if a key is to be released + if( !press ) k->state = 0; k->keycode = key; k->same_screen = 1; wdw->top_level->put_event((XEvent *) k); @@ -553,6 +555,11 @@ void Shuttle::key(unsigned short code, unsigned int value) fprintf(stderr, "key(%d, %d) out of range\n", code + EVENT_CODE_KEY1, value); return; } +// Show help if Alt is pressed on the keyboard together with a shuttle button + if( wdw && wdw->alt_down() && value ) { + wdw->context_help_show("Shuttle key default arrangement"); + return; + } send_stroke_sequence(value ? KJS_KEY_DOWN : KJS_KEY_UP, code); }