Skip to content

Commit

Permalink
Merge pull request #16 from whydoubt/connect_on_enter
Browse files Browse the repository at this point in the history
Connect upon hitting Enter from the password field
  • Loading branch information
stuicey authored Oct 29, 2018
2 parents 72967b8 + 92b6def commit 889fd62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@

// Build the default wsProxy URL for display on sidenav
buildWSProxyURL()

// Connect upon hitting Enter from the password field
document.getElementById("password").addEventListener("keyup", function(event) {
if(event.key !== "Enter") return;
document.getElementById("connect").click();
event.preventDefault();
});
};

// Run every time the webpage is resized
Expand Down

0 comments on commit 889fd62

Please sign in to comment.