From: <zou...@us...> - 2007-11-25 18:44:08
|
Revision: 912 http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=912&view=rev Author: zouzou123gen Date: 2007-11-25 10:44:05 -0800 (Sun, 25 Nov 2007) Log Message: ----------- key handling in file listings Modified Paths: -------------- dcplusplus/trunk/changelog.txt dcplusplus/trunk/win32/DirectoryListingFrame.cpp Modified: dcplusplus/trunk/changelog.txt =================================================================== --- dcplusplus/trunk/changelog.txt 2007-11-16 23:11:07 UTC (rev 911) +++ dcplusplus/trunk/changelog.txt 2007-11-25 18:44:05 UTC (rev 912) @@ -12,6 +12,7 @@ * Fixed user commands params (poy) * Readded list view double buffering (thanks poy) * Fixed some msvc compile issues (thanks james ross) +* Fixed key handling in file listings (poy) -- 0.703 2007-11-08 -- * Fixed invalid strings (thanks james ross) Modified: dcplusplus/trunk/win32/DirectoryListingFrame.cpp =================================================================== --- dcplusplus/trunk/win32/DirectoryListingFrame.cpp 2007-11-16 23:11:07 UTC (rev 911) +++ dcplusplus/trunk/win32/DirectoryListingFrame.cpp 2007-11-25 18:44:05 UTC (rev 912) @@ -963,11 +963,17 @@ bool DirectoryListingFrame::handleKeyDownFiles(int c) { if(c == VK_BACK) { up(); - } else if(c == VK_LEFT && WinUtil::isAlt()) { + return true; + } + if(c == VK_LEFT && WinUtil::isAlt()) { back(); - } else if(c == VK_RIGHT && WinUtil::isAlt()) { + return true; + } + if(c == VK_RIGHT && WinUtil::isAlt()) { forward(); - } else if(c == VK_RETURN) { + return true; + } + if(c == VK_RETURN) { if(files->getSelectedCount() == 1) { ItemInfo* ii = files->getSelectedData(); if(ii->type == ItemInfo::DIRECTORY) { @@ -985,6 +991,7 @@ } else { downloadFiles(SETTING(DOWNLOAD_DIRECTORY)); } + return true; } - return true; + return false; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |