From bb0ef4aa98f61b854998a4dd9abd7b3ecebff328 Mon Sep 17 00:00:00 2001
From: Nicolas Wavrant <nicolas.wavrant@tiolive.com>
Date: Wed, 6 Aug 2014 06:12:17 +0100
Subject: [PATCH] runner: minishell prevents <Tab> keystroke from happening

---
 slapos/runner/static/js/scripts/shell.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/slapos/runner/static/js/scripts/shell.js b/slapos/runner/static/js/scripts/shell.js
index 0285c5e..0b1e51f 100644
--- a/slapos/runner/static/js/scripts/shell.js
+++ b/slapos/runner/static/js/scripts/shell.js
@@ -74,5 +74,11 @@ $(document).ready(function () {
         $("#shell-input").val(shellHistory[currentCommand]);
       }
     }
+
+    //if Tab is pressed
+    if(event.which === 9) {
+      event.preventDefault();
+        $("#error").Popup("Sorry, Tab completion is not handled for the moment in MiniShell", {type: 'info', duration: 1000})
+    }
   });
 });
-- 
2.30.9