mirror of https://github.com/cy384/ssheven.git
quick fix for period password input bug (github issue #2)
This commit is contained in:
parent
08e2c78e57
commit
b2e58e0d03
18
ssheven.c
18
ssheven.c
|
@ -827,15 +827,7 @@ pascal Boolean TwoItemFilter(DialogPtr dlog, EventRecord *event, short *itemHit)
|
||||||
*itemHit = 6;
|
*itemHit = 6;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
break;
|
// fall through in case of a plain '.' !!!!
|
||||||
|
|
||||||
case kLeftArrowCharCode:
|
|
||||||
case kRightArrowCharCode:
|
|
||||||
case kUpArrowCharCode:
|
|
||||||
case kDownArrowCharCode:
|
|
||||||
case kHomeCharCode:
|
|
||||||
case kEndCharCode:
|
|
||||||
return false; // don't handle them
|
|
||||||
|
|
||||||
default: // TODO: this is dumb and assumes everything else is a valid text character
|
default: // TODO: this is dumb and assumes everything else is a valid text character
|
||||||
selStart = (**((DialogPeek)dlog)->textH).selStart; // Get the selection in the visible item
|
selStart = (**((DialogPeek)dlog)->textH).selStart; // Get the selection in the visible item
|
||||||
|
@ -847,6 +839,14 @@ pascal Boolean TwoItemFilter(DialogPtr dlog, EventRecord *event, short *itemHit)
|
||||||
event->message = 0xa5; // Replace with character to use (the bullet)
|
event->message = 0xa5; // Replace with character to use (the bullet)
|
||||||
DialogSelect(event, &evtDlog, itemHit); // Put in fake character
|
DialogSelect(event, &evtDlog, itemHit); // Put in fake character
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
case kLeftArrowCharCode:
|
||||||
|
case kRightArrowCharCode:
|
||||||
|
case kUpArrowCharCode:
|
||||||
|
case kDownArrowCharCode:
|
||||||
|
case kHomeCharCode:
|
||||||
|
case kEndCharCode:
|
||||||
|
return false; // don't handle them
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue