#78 XCurses not handle ALT letters and numbers

open
nobody
None
5
2011-07-08
2011-07-08
Anonymous
No

When, for example, alt-a pressed on keyboard, xcurses send 'a' character to application instead of ALT_A. Problem can fixed by change == to & in x11.c module in XCursesKeyPress subroutine, as follows:

/* Handle ALT letters and numbers */

if (event->xkey.state & Mod1Mask)
{
if (key >= 'A' && key <= 'Z')

instead of:

/* Handle ALT letters and numbers */

if (event->xkey.state == Mod1Mask)
{
if (key >= 'A' && key <= 'Z')

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks