From 05eac3191827c8cf6b636c8d590b9319eaab85d9 Mon Sep 17 00:00:00 2001 From: Harry Tom Date: Sat, 15 Jan 2022 22:52:23 +0530 Subject: [PATCH] Added Shortcuts, Shortcut menu! --- README.md | 10 ++++ css/style.css | 34 ++++++++++++ index.html | 25 +++++++++ js/app.js | 3 +- js/app.ui.js | 13 ++++- js/keyboard.js | 88 ++++++++++++++++++++++++++++++ src/libs/hotkeysjs/hotekeys.min.js | 2 + wiki.html | 18 +++++- 8 files changed, 188 insertions(+), 5 deletions(-) create mode 100644 js/keyboard.js create mode 100644 src/libs/hotkeysjs/hotekeys.min.js diff --git a/README.md b/README.md index 20acca5..c7ece7b 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,9 @@ Wikifox (beta) is a clean and simplified version of the real Wikipedia! This wor [](https://discord.gg/wdDXnFz3bm) +# What's New +- Added Keyboard shortcuts. Press `k` or got to `options` to see what are the new shortcuts! + # πŸ’« Features - πŸ‘ Super-awesome and Clean UI - πŸ” Search any articles Easily @@ -20,10 +23,17 @@ Wikifox (beta) is a clean and simplified version of the real Wikipedia! This wor - πŸ“’Real aloud - 🦘 Quick Jump to headings - 🎲 Random Articles +- Keyboard Shortcuts - πŸ“± Mobile Friendly - ℹ️ Infobox (beta) - πŸ’« And much more! +# πŸ”” Upcoming Features + +- More keyboard shortcuts +- Comments +- Reactions + # βœ‚οΈ Few Screenshots | | | diff --git a/css/style.css b/css/style.css index ad2fe6e..30593b6 100644 --- a/css/style.css +++ b/css/style.css @@ -923,4 +923,38 @@ a{ .product-hunt-image{ box-shadow: var(--box-shadow-prime); +} +.short-cuts-wrap{ + padding-top: 20px; +} + + +.key-code{ + background-color: var(--secondary-background); + color: var(--secondary-color); + padding: 3px; + font-size: 15px; + height: 30px; + min-width: 30px; + display: flex; + font-weight: 900; + border-radius: 5px; +} + +.key-title{ + color: var(--secondary-color); + margin-left: 10px; + font-size: 13px; +} + +.keyboard-shortcut-item{ + margin-bottom: 10px; + display: flex; + align-items: center; + cursor: pointer; +} + +.keyboard-shortcut-item:hover .key-code{ + color: var(--highlight); + transform: scale(1.1); } \ No newline at end of file diff --git a/index.html b/index.html index 4766d79..0f9ab5b 100644 --- a/index.html +++ b/index.html @@ -135,6 +135,29 @@
Language
+ +
+
Keyboard Shortcuts
+ Increase your productivity with Keyboard shortcuts! +
+
+

View shortcuts

+
+
+
+ + + +
+
+
+

Keyboard Shortcuts

+
+
+
+
+
+
@@ -151,6 +174,8 @@
Language
+ + + @@ -264,5 +277,6 @@

Download Article

+ \ No newline at end of file