diff --git a/static/images/ui/drag.svg b/static/images/ui/drag.svg
index 5e8fa2385..6a6bbd341 100644
--- a/static/images/ui/drag.svg
+++ b/static/images/ui/drag.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
diff --git a/static/index/index.js b/static/index/index.js
index 0ba9bf36c..cd2b36f20 100644
--- a/static/index/index.js
+++ b/static/index/index.js
@@ -127,8 +127,28 @@ function attendanceDateChange(selectElement) {
}
$(document).on('keydown', function (event) {
+ // Check if the cursor is not focused on an input field
+ var isInputFocused = $(document.activeElement).is('input, textarea, select');
+
if (event.keyCode === 46) {
// Click the delete option from navbar of current page
$('[data-action="delete"]').click();
+ } else if (event.keyCode === 107) { // Key code for the + key on the numeric keypad
+ if (!isInputFocused) {
+ // Click the create option from navbar of current page
+ $('[data-action="create"]').click();
+ }
+ }
+ else if (event.keyCode === 39) { // Key code for the right arrow key
+ if (!isInputFocused) {
+ // Click on the next button in detail view modal
+ $('[data-action="next"]').click();
+ }
+ }
+ else if (event.keyCode === 37) { // Key code for the left arrow key
+ if (!isInputFocused) {
+ // Click on the previous button in detail view modal
+ $('[data-action="previous"]').click();
+ }
}
});