Update of /cvsroot/audacity/audacity-src/src/widgets
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv12462

Modified Files:
        TimeTextCtrl.cpp 
Log Message:
Handle numeric keypad entry.

Index: TimeTextCtrl.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/widgets/TimeTextCtrl.cpp,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- TimeTextCtrl.cpp    10 Sep 2006 22:12:31 -0000      1.43
+++ TimeTextCtrl.cpp    11 Sep 2006 00:00:40 -0000      1.44
@@ -871,6 +871,9 @@
    wxKeyEvent *kevent = (wxKeyEvent *)event.GetEventObject();
    int keyCode = kevent->GetKeyCode();
 
+   // Convert numeric keypad entries.
+   if ((keyCode >= WXK_NUMPAD0) && (keyCode <= WXK_NUMPAD9)) keyCode -= 
WXK_NUMPAD0 - '0';
+
    switch (keyCode)
    {
       case WXK_BACK:
@@ -905,6 +908,9 @@
    if (mFocusedDigit >= (int)mDigits.GetCount())
       mFocusedDigit = mDigits.GetCount()-1;
 
+   // Convert numeric keypad entries.
+   if ((keyCode >= WXK_NUMPAD0) && (keyCode <= WXK_NUMPAD9)) keyCode -= 
WXK_NUMPAD0 - '0';
+
    if (keyCode >= '0' && keyCode <= '9') {
       mValueString[mDigits[mFocusedDigit].pos] = wxChar(keyCode);
       ControlsToValue();


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to