Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv10431
Modified Files:
Project.cpp
Log Message:
Make control toolbar hook key events for SHIFT keys.
Index: Project.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Project.cpp,v
retrieving revision 1.286
retrieving revision 1.287
diff -u -d -r1.286 -r1.287
--- Project.cpp 17 Oct 2006 12:28:52 -0000 1.286
+++ Project.cpp 22 Oct 2006 19:35:36 -0000 1.287
@@ -1174,15 +1174,9 @@
bool AudacityProject::HandleKeyDown(wxKeyEvent & event)
{
- // Allow the Play button to change to a Loop button,
- // and the zoom cursor to change to a zoom out cursor
- if (event.GetKeyCode() == WXK_SHIFT) {
- ControlToolBar *tb = GetControlToolBar();
- if (tb)
- tb->OnShiftDown(event);
-
+ // Allow the zoom cursor to change to a zoom out cursor
+ if (event.GetKeyCode() == WXK_SHIFT)
mTrackPanel->HandleShiftKey(true);
- }
if (event.GetKeyCode() == WXK_CONTROL)
mTrackPanel->HandleControlKey(true);
@@ -1210,15 +1204,9 @@
bool AudacityProject::HandleKeyUp(wxKeyEvent & event)
{
- // Allow the Loop button to change back to a Play button,
- // and Zoom Out cursor back to Zoom In
- if (event.GetKeyCode() == WXK_SHIFT) {
- ControlToolBar *tb = GetControlToolBar();
- if (tb)
- tb->OnShiftUp(event);
-
+ // Allow the Zoom Out cursor back to Zoom In
+ if (event.GetKeyCode() == WXK_SHIFT)
mTrackPanel->HandleShiftKey(false);
- }
if (event.GetKeyCode() == WXK_CONTROL)
mTrackPanel->HandleControlKey(false);
-------------------------------------------------------------------------
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