Pass the 'force' value through to getkey_simple()

This commit is contained in:
Paul LeoNerd Evans 2008-11-02 14:43:19 +00:00
parent e5ff066539
commit 62d4e7eccb
4 changed files with 5 additions and 5 deletions

View File

@ -350,7 +350,7 @@ static termkey_result getkey(termkey_t *tk, termkey_key *key, int force)
return getkey_csi(tk, 1, key, force);
}
else
return (*tk->method.getkey_simple)(tk, key);
return (*tk->method.getkey_simple)(tk, key, force);
}
static termkey_keysym register_csi_ss3(termkey_csi *csi, termkey_type type, termkey_keysym sym, unsigned char cmd, const char *name)

View File

@ -115,7 +115,7 @@ static termkey_result getkey(termkey_t *tk, termkey_key *key, int force)
}
// No special seq. Must be a simple key then
return (*tk->method.getkey_simple)(tk, key);
return (*tk->method.getkey_simple)(tk, key, force);
}
static struct {

View File

@ -49,7 +49,7 @@ struct termkey {
struct {
void (*eat_bytes)(termkey_t *tk, size_t count);
void (*emit_codepoint)(termkey_t *tk, long codepoint, termkey_key *key);
termkey_result (*getkey_simple)(termkey_t *tk, termkey_key *key);
termkey_result (*getkey_simple)(termkey_t *tk, termkey_key *key, int force);
} method;
};

View File

@ -17,7 +17,7 @@ static struct termkey_driver *drivers[] = {
// Forwards for the "protected" methods
static void eat_bytes(termkey_t *tk, size_t count);
static void emit_codepoint(termkey_t *tk, long codepoint, termkey_key *key);
static termkey_result getkey_simple(termkey_t *tk, termkey_key *key);
static termkey_result getkey_simple(termkey_t *tk, termkey_key *key, int force);
static termkey_keysym register_c0(termkey_t *tk, termkey_keysym sym, unsigned char ctrl, const char *name);
static termkey_keysym register_c0_full(termkey_t *tk, termkey_keysym sym, int modifier_set, int modifier_mask, unsigned char ctrl, const char *name);
@ -347,7 +347,7 @@ static void emit_codepoint(termkey_t *tk, long codepoint, termkey_key *key)
#define CHARAT(i) (tk->buffer[tk->buffstart + (i)])
static termkey_result getkey_simple(termkey_t *tk, termkey_key *key)
static termkey_result getkey_simple(termkey_t *tk, termkey_key *key, int force)
{
unsigned char b0 = CHARAT(0);