Applied, committed, and pushed to github. Chris Retired Computer Engineer
On 08/16/14 17:51, Frederick H. Pitts wrote:
Chris, I'm using if ( /* Filter out NumLock status from event state */ ( key_event->state & ~ GDK_MOD2_MASK ) == 0 && ( key_event->keyval == GDK_KEY_Return || /* Honor numeric keypad enter key */ key_event->keyval == GDK_KEY_KP_Enter ) ) { /* send line to APL */ } I think we are on the same page. Only difference I see between your and my solutions is that mine will honor the numeric keypad enter key irrespective of the NumLock state whereas your requires NumLock to be active for the numeric keypad enter key to be honored. Personally, I prefer the former arrangement. Regards, Fred Retired Chemical Engineer