/[NexusPowerControl]/trunk/NexusPowerControl/DesktopSplash.cs
ViewVC logotype

Diff of /trunk/NexusPowerControl/DesktopSplash.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/NexusPowerControl/DesktopSplash.cs	2011/10/22 23:15:43	13
+++ trunk/NexusPowerControl/DesktopSplash.cs	2011/10/22 23:37:10	14
@@ -6,11 +6,14 @@
 using System.Linq;
 using System.Text;
 using System.Windows.Forms;
+using Ownskit.Utils;
 
 namespace NexusPowerControl
 {
     public partial class DesktopSplash : Form
     {
+        KeyboardListener keyboard_listener = new KeyboardListener();
+
         MainUI ui = new MainUI();
 
         const int MAX_TICK_COUNT = 10; // milliseconds
@@ -18,11 +21,15 @@
         public DesktopSplash()
         {
             InitializeComponent();
+            keyboard_listener = new KeyboardListener();
+            keyboard_listener.DisableKeyboard();
+
             ui.FormClosed += new FormClosedEventHandler(ui_FormClosed);
         }
 
         void ui_FormClosed(object sender, FormClosedEventArgs e)
         {
+            keyboard_listener.EnableKeyboard();
             this.Close();
         }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22