Keyboard input

This commit is contained in:
elasota
2019-12-25 22:20:10 -05:00
parent 5cb9b85396
commit ac3929fb1f
34 changed files with 1003 additions and 708 deletions

View File

@@ -8,6 +8,7 @@
//#include <Balloons.h>
#include "PLNumberFormatting.h"
#include "PLKeyEncoding.h"
#include "PLPasStr.h"
#include "PLToolUtils.h"
#include "DialogUtils.h"
@@ -671,10 +672,10 @@ Boolean ResumeFilter (DialogPtr dial, EventRecord *event, short *item)
switch (event->what)
{
case keyDown:
switch ((event->message) & charCodeMask)
switch (event->message)
{
case kReturnKeyASCII:
case kEnterKeyASCII:
case PL_KEY_SPECIAL(kEnter):
case PL_KEY_NUMPAD_SPECIAL(kEnter):
FlashDialogButton(dial, kOkayButton);
*item = kOkayButton;
return(true);