|
From: <dos...@us...> - 2012-03-29 20:37:54
|
Revision: 4468
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4468&view=rev
Author: doskabouter
Date: 2012-03-29 20:37:48 +0000 (Thu, 29 Mar 2012)
Log Message:
-----------
minor cleanup
Modified Paths:
--------------
trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIPlugin.cs
Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIPlugin.cs
===================================================================
--- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIPlugin.cs 2012-03-16 12:28:28 UTC (rev 4467)
+++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIPlugin.cs 2012-03-29 20:37:48 UTC (rev 4468)
@@ -594,43 +594,8 @@
{
linkTime = 0;
MyLog.debug("action key press=" + action.m_key.KeyChar);
- switch (action.m_key.KeyChar)
+ if (action.m_key.KeyChar == 27)
{
- #region 0..9
- case '1':
- linkId += "1";
- break;
- case '2':
- linkId += "2";
- break;
- case '3':
- linkId += "3";
- break;
- case '4':
- linkId += "4";
- break;
- case '5':
- linkId += "5";
- break;
- case '6':
- linkId += "6";
- break;
- case '7':
- linkId += "7";
- break;
- case '8':
- linkId += "8";
- break;
- case '9':
- linkId += "9";
- break;
- case '0':
- linkId += "0";
- break;
- #endregion
- }
- if ((int)action.m_key.KeyChar == 27)
- {
// escape
if (!osd_linkID.Visible)
{
@@ -643,6 +608,9 @@
Application.DoEvents();
}
}
+ else
+ if (action.m_key.KeyChar >= '0' && action.m_key.KeyChar <= '9')
+ linkId += (char)action.m_key.KeyChar;
if (linkId.Length > 4) linkId = linkId.Substring(0, 1);
}
break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|