diff --git a/help/misc/qr-code-samples.html b/help/misc/qr-code-samples.html
index 2d371b2..e193019 100644
--- a/help/misc/qr-code-samples.html
+++ b/help/misc/qr-code-samples.html
@@ -56,7 +56,7 @@
QR Code Samples
@@ -97,7 +97,7 @@
Prev : Miscellaneous
- Next : Third Party & License
+ Next : Shortcut Keys
diff --git a/help/misc/shortcut-keys.html b/help/misc/shortcut-keys.html
new file mode 100644
index 0000000..8e753cd
--- /dev/null
+++ b/help/misc/shortcut-keys.html
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
QRazyBox - Help Page
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Shortcut Keys
+
+
This is list of shortcut keys that can be used as alternate way to do various commands.
+
+
Q : Black color palette
+
W : White color palette
+
E : Grey color palette
+
G : Toggle flood fill
+
+
- : Zoom out (-5px module size)
+
= : Zoom in (+5px module size)
+
+
Z : Undo (move to previous history )
+
X : Redo (move to next history )
+
+
TAB : Switch working mode
+
+
+
+ Prev : QR Code Samples
+ Next : Third Party & License
+
+
+
+
+
+
\ No newline at end of file
diff --git a/help/search.html b/help/search.html
index 7e7cf5e..16eaa53 100644
--- a/help/search.html
+++ b/help/search.html
@@ -106,6 +106,7 @@
Miscellaneous
diff --git a/js/main.js b/js/main.js
index 84a15e3..597318f 100644
--- a/js/main.js
+++ b/js/main.js
@@ -1819,6 +1819,58 @@ $(document).ready(function(){
}
})
+ $(document).keydown(function(e){
+ if(!$("input[type=text], textarea").is(":focus") && !$("#tools-extract").hasClass("active")){
+
+ //Shortcut key : Tab
+ if(e.keyCode == 9){
+ e.preventDefault();
+ $("#btn-switch-mode").trigger("click");
+ }
+
+ //Shortcut key : -
+ else if(e.keyCode == 173){
+ $("#btn-size-min").trigger("click");
+ }
+
+ //Shortcut key : =
+ else if(e.keyCode == 61){
+ $("#btn-size-plus").trigger("click");
+ }
+
+ //Shortcut key : Q
+ else if(e.keyCode == 81){
+ $("#painter-black").trigger("click");
+ }
+
+ //Shortcut key : W
+ else if(e.keyCode == 87){
+ $("#painter-white").trigger("click");
+ }
+
+ //Shortcut key : E
+ else if(e.keyCode == 69){
+ $("#painter-eraser").trigger("click");
+ }
+
+ //Shortcut key : G
+ else if(e.keyCode == 71){
+ $("#painter-fill").trigger("click");
+ }
+
+ //Shortcut key : Z
+ else if(e.keyCode == 90){
+ $(".history div.active").next().trigger("click");
+ }
+
+ //Shortcut key : X
+ else if(e.keyCode == 88){
+ $(".history div.active").prev().trigger("click");
+ }
+
+ }
+ })
+
//Prevent page from closing
window.onbeforeunload = function(){
if(changed_state)