msg_meta_kbd_char

Edward Di Geronimo Jr. (edwdig@bergen.org)
Sun, 17 Nov 1996 22:12:20 -0500

Hi,

I'm trying to catch MSG_META_KBD_CHAR in my subclass of VisLargeTextClass.
It works just fine for normal keys, but keys like tab and enter don't get
caught. Here's what I'm doing. KeyMonitor is a GenValue to show the value of
character being passed. When I press tab, it adds a tab instead of two
spaces. When I press enter or backspace, the GenValue changes to 0. That
means it's being sent, but not in character. How do I catch those keys?

@method MyTextClass, MSG_META_KBD_CHAR
{
if ((flags & CF_FIRST_PRESS) || (flags & CF_REPEAT_PRESS)) {
switch (character) {
case C_TAB:
@call self::MSG_VIS_TEXT_APPEND_PTR(" ", 2);
break;
default:
@call KeyMonitor::MSG_GEN_VALUE_SET_INTEGER_VALUE(character, 0);
@callsuper();
break;
}
}
else {
@callsuper();
}
}

-------------------------------------------------------------------
| Edward Di Geronimo Jr. edwdig@bergen.org |
-------------------------------------------------------------------