The R Project SVN R

Rev

Rev 29067 | Rev 32360 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 29067 Rev 31990
Line 1271... Line 1271...
1271
static KeySym GetKey(DEEvent * event)
1271
static KeySym GetKey(DEEvent * event)
1272
{
1272
{
1273
    char text[1];
1273
    char text[1];
1274
    KeySym iokey;
1274
    KeySym iokey;
1275
 
1275
 
1276
    XLookupString((XKeyEvent *)event, text, 1, &iokey, 0);
1276
    XLookupString((XKeyEvent *)event, text, 1, &iokey, NULL);
1277
    return iokey;
1277
    return iokey;
1278
}
1278
}
1279
 
1279
 
1280
static char GetCharP(DEEvent * event)
1280
static char GetCharP(DEEvent * event)
1281
{
1281
{
1282
    char text[1];
1282
    char text[1];
1283
    KeySym iokey;
1283
    KeySym iokey;
1284
 
1284
 
1285
    XLookupString((XKeyEvent *)event, text, 1, &iokey, 0);
1285
    XLookupString((XKeyEvent *)event, text, 1, &iokey, NULL);
1286
    return text[0];
1286
    return text[0];
1287
}
1287
}
1288
 
1288
 
1289
static int CheckControl(DEEvent * event)
1289
static int CheckControl(DEEvent * event)
1290
{
1290
{
Line 1301... Line 1301...
1301
    int i;
1301
    int i;
1302
    char text[1];
1302
    char text[1];
1303
    KeySym iokey;
1303
    KeySym iokey;
1304
 
1304
 
1305
    (*event).xkey.state = 0;
1305
    (*event).xkey.state = 0;
1306
    XLookupString((XKeyEvent *)event, text, 1, &iokey, 0);
1306
    XLookupString((XKeyEvent *)event, text, 1, &iokey, NULL);
1307
    /* one row overlap when scrolling: top line <--> bottom line */
1307
    /* one row overlap when scrolling: top line <--> bottom line */
1308
    switch (text[0]) {
1308
    switch (text[0]) {
1309
	case 'b':
1309
	case 'b':
1310
	    i = rowmin - nhigh + 2;
1310
	    i = rowmin - nhigh + 2;
1311
	    jumpwin(colmin, max(1, i));
1311
	    jumpwin(colmin, max(1, i));