Merge pull request #18 from jhermsmeier/prevent-tab-focus-loss

keyboard: Prevent input focus loss if no completion found
This commit is contained in:
Лu Лinveгa 2017-06-30 18:47:43 -06:00 committed by GitHub
commit ce20310e17

View File

@ -17,9 +17,9 @@ function Keyboard()
// Autocomplete with tab
if(event.keyCode === 9){
event.preventDefault();
var ac = ronin.terminal.find_autocomplete();
if(ac){
event.preventDefault();
ronin.terminal.input.value += ac;
}
}
@ -105,7 +105,7 @@ function Keyboard()
this.key_escape = function()
{
ronin.overlay.key_escape();
for(var key in ronin.modules){
ronin.modules[key].key_escape();
}