@@ -11,39 +11,52 @@ export interface KeyboardShortcut {
1111}
1212
1313export const KEYBOARD_SHORTCUTS : KeyboardShortcut [ ] = [
14+ // Navigation Shortcuts
1415 { key : "k" , ctrl : true , description : "Focus search" , action : "search" } ,
1516 { key : "d" , ctrl : true , description : "Dashboard" , action : "/dashboard" } ,
1617 { key : "h" , ctrl : true , description : "Home" , action : "/" } ,
1718 { key : "/" , ctrl : true , description : "Keyboard shortcuts" , action : "shortcuts" } ,
19+ { key : "f" , ctrl : true , alt : true , description : "Favorites" , action : "/favorites" } ,
20+ { key : "e" , ctrl : true , alt : true , description : "Recent Tools" , action : "/recent" } ,
1821
19- // Security Tools
20- { key : "1" , ctrl : true , alt : true , description : "JWT Debugger" , action : "/jwt-debugger" } ,
21- { key : "2" , ctrl : true , alt : true , description : "Password Strength Checker " , action : "/password-checker" } ,
22- { key : "3" , ctrl : true , alt : true , description : "Hash Generator" , action : "/hash-tools" } ,
23- { key : "4" , ctrl : true , alt : true , description : "Full Security Audit" , action : "/analyze" } ,
22+ // Security Tools (Alt+1-4)
23+ { key : "1" , alt : true , description : "JWT Debugger" , action : "/jwt-debugger" } ,
24+ { key : "2" , alt : true , description : "Password Strength" , action : "/password-checker" } ,
25+ { key : "3" , alt : true , description : "Hash Generator" , action : "/hash-tools" } ,
26+ { key : "4" , alt : true , description : "Security Audit" , action : "/analyze" } ,
2427
25- // Encryption Tools
26- { key : "5" , ctrl : true , alt : true , description : "AES Encryption" , action : "/aes-encryption" } ,
27- { key : "6" , ctrl : true , alt : true , description : "RSA Key Generator" , action : "/rsa-generator" } ,
28- { key : "7" , ctrl : true , alt : true , description : "Base64 Encoder/Decoder " , action : "/base64-tools" } ,
28+ // Encryption Tools (Alt+5-7)
29+ { key : "5" , alt : true , description : "AES Encryption" , action : "/aes-encryption" } ,
30+ { key : "6" , alt : true , description : "RSA Key Generator" , action : "/rsa-generator" } ,
31+ { key : "7" , alt : true , description : "Base64 Tools " , action : "/base64-tools" } ,
2932
30- // Analysis Tools
31- { key : "8" , ctrl : true , alt : true , description : "SSL Certificate Inspector" , action : "/ssl-inspector" } ,
32- { key : "9" , ctrl : true , alt : true , description : "JWT Analyzer" , action : "/jwt-analyzer" } ,
33- { key : "0" , ctrl : true , alt : true , description : "CORS Checker" , action : "/cors-checker" } ,
33+ // Analysis Tools (Alt+8-0)
34+ { key : "8" , alt : true , description : "SSL Inspector" , action : "/ssl-inspector" } ,
35+ { key : "9" , alt : true , description : "JWT Analyzer" , action : "/jwt-analyzer" } ,
36+ { key : "0" , alt : true , description : "CORS Checker" , action : "/cors-checker" } ,
3437
35- // General Tools
36- { key : "a" , ctrl : true , alt : true , description : "API Security" , action : "/api-security" } ,
37- { key : "c" , ctrl : true , alt : true , description : "Certificate Decoder" , action : "/certificate-decoder" } ,
38- { key : "s" , ctrl : true , alt : true , description : "Data Sanitizer" , action : "/data-sanitizer" } ,
39- { key : "n" , ctrl : true , alt : true , description : "DNS Lookup" , action : "/dns-lookup" } ,
40- { key : "b" , ctrl : true , alt : true , description : "HTTP Builder" , action : "/http-builder" } ,
41- { key : "j" , ctrl : true , alt : true , description : "JWT Best Practices" , action : "/jwt-best-practices" } ,
42- { key : "g" , ctrl : true , alt : true , description : "JWT Generator" , action : "/jwt-generator" } ,
43- { key : "p" , ctrl : true , alt : true , description : "Privacy Analyzer" , action : "/privacy-analyzer" } ,
44- { key : "r" , ctrl : true , alt : true , description : "Regex Tester" , action : "/regex-tester" } ,
45- { key : "f" , ctrl : true , alt : true , description : "Favorites" , action : "/favorites" } ,
46- { key : "e" , ctrl : true , alt : true , description : "Recent Tools" , action : "/recent" } ,
38+ // Utility Tools (Alt+Letter)
39+ { key : "a" , alt : true , description : "API Security" , action : "/api-security" } ,
40+ { key : "b" , alt : true , description : "Base Converter" , action : "/base-converter" } ,
41+ { key : "c" , alt : true , description : "Certificate Decoder" , action : "/certificate-decoder" } ,
42+ { key : "g" , alt : true , description : "CSP Generator" , action : "/csp-generator" } ,
43+ { key : "i" , alt : true , description : "Hash Identifier" , action : "/hash-identifier" } ,
44+ { key : "j" , alt : true , description : "JSON Formatter" , action : "/json-formatter" } ,
45+ { key : "l" , alt : true , description : "Color Converter" , action : "/color-converter" } ,
46+ { key : "m" , alt : true , description : "HMAC Generator" , action : "/hmac-generator" } ,
47+ { key : "n" , alt : true , description : "DNS Lookup" , action : "/dns-lookup" } ,
48+ { key : "o" , alt : true , description : "TOTP Generator" , action : "/totp-generator" } ,
49+ { key : "p" , alt : true , description : "Password Generator" , action : "/password-generator" } ,
50+ { key : "q" , alt : true , description : "URL Parser" , action : "/url-parser" } ,
51+ { key : "r" , alt : true , description : "Regex Tester" , action : "/regex-tester" } ,
52+ { key : "s" , alt : true , description : "Data Sanitizer" , action : "/data-sanitizer" } ,
53+ { key : "t" , alt : true , description : "Timestamp Converter" , action : "/timestamp-converter" } ,
54+ { key : "u" , alt : true , description : "UUID Generator" , action : "/uuid-generator" } ,
55+ { key : "v" , alt : true , description : "Privacy Analyzer" , action : "/privacy-analyzer" } ,
56+ { key : "w" , alt : true , description : "HTTP Builder" , action : "/http-builder" } ,
57+ { key : "x" , alt : true , description : "XOR Cipher" , action : "/xor-cipher" } ,
58+ { key : "y" , alt : true , description : "Caesar Cipher" , action : "/caesar-cipher" } ,
59+ { key : "z" , alt : true , description : "Text Diff" , action : "/text-diff" } ,
4760] ;
4861
4962export function useKeyboardShortcuts ( onShowShortcuts ?: ( ) => void ) {
0 commit comments