From ec017915c2f6071f39c4555163f5313895abc2ac Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Sun, 4 Aug 2013 02:15:31 -0400 Subject: [PATCH] Use ctrl keybind to assist in copy and paste --- index.html | 127 ++++++++++++++++++++++++++++------------------------- 1 file changed, 67 insertions(+), 60 deletions(-) diff --git a/index.html b/index.html index 4ae87cc..3db5b8f 100755 --- a/index.html +++ b/index.html @@ -1,71 +1,78 @@ - - - Password Generator - - - - + + + Password Generator + + + + - -
-
- -
-
-
- - -
-
- - -
+ +
+
+ +
+ +
+ + +
+
+ + +
-
- -
- -
-
-
+
+ Fill out the boxes and hit ctrl+c to copy your password. +
+ +
+
+
- + - - - - - + + + + - + if(root in special) { + $('#password').val(special[root](hash)); + } else { + $('#password').val(hash); + } + }); + }); + + $(document).keydown(function(e) { + var keycode = e.keycode || e.which; + if(keycode == 17) { + $('#password').focus().select(); + } + }); + +