From b5eb0be5b38bfdad6cdfdb30b6d22ddc9d85770c Mon Sep 17 00:00:00 2001 From: Dan Gowans Date: Tue, 27 Sep 2022 16:05:40 -0400 Subject: [PATCH] keyboard shortcuts --- docs/README.md | 3 ++ docs/shortcuts.md | 47 ++++++++++++++++++ views/_header.ejs | 28 ++++++----- views/admin-fees.ejs | 2 +- views/admin-occupancyTypes.ejs | 2 +- views/dashboard.ejs | 68 +++++++++++++-------------- views/login.ejs | 2 +- views/lot-edit.ejs | 6 ++- views/lot-search.ejs | 7 ++- views/lot-view.ejs | 9 ++-- views/lotOccupancy-edit.ejs | 6 ++- views/lotOccupancy-search.ejs | 17 ++++--- views/lotOccupancy-view.ejs | 3 +- views/map-edit.ejs | 11 ++++- views/map-search.ejs | 6 ++- views/map-view.ejs | 5 +- views/workOrder-edit.ejs | 6 +-- views/workOrder-milestoneCalendar.ejs | 2 +- views/workOrder-search.ejs | 5 +- views/workOrder-view.ejs | 5 +- 20 files changed, 161 insertions(+), 79 deletions(-) create mode 100644 docs/shortcuts.md diff --git a/docs/README.md b/docs/README.md index 8b8106e8..a7404cb9 100644 --- a/docs/README.md +++ b/docs/README.md @@ -10,4 +10,7 @@ Understanding the key terms used in the Lot Occupancy System. [**Map Images**](mapImages.md)
+How to create images compatible with the Lot Occupancy System. + +[**Keyboard Shortcuts**](shortcuts.md)
How to create images compatible with the Lot Occupancy System. \ No newline at end of file diff --git a/docs/shortcuts.md b/docs/shortcuts.md new file mode 100644 index 00000000..d2bc3400 --- /dev/null +++ b/docs/shortcuts.md @@ -0,0 +1,47 @@ +[Home](https://cityssm.github.io/lot-occupancy-system/) +• +[Help](https://cityssm.github.io/lot-occupancy-system/docs/) + +# Keyboard Shortcuts + +Note that the keys needed to access the keyboard shortcuts +vary by browser and operating system. + +For example, the Mozilla Firefox web browser running on Windows uses Shift + Alt, +while most web browsers running on Mac machines use Control + Option. + +See [MDN's documentation on the accesskeys](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey) +for assistance identifying the combination for your web browser - operating system combination. + +## All Pages + +| Shortcut Key | Description | +| ------------ | ------------------------------------ | +| 1 | Go to Work Order search. | +| 2 | Go to Occupancy search. | +| 3 | Go to Lot search. | +| 4 | Go to Map search. | +| h | Open the Help website. | +| x | Log out of the Lot Occupancy System. | + +## Search Pages + +| Shortcut Key | Description | +| ------------ | --------------------------------- | +| n | Create a new record. | +| f | Focus on the first search filter. | + +## View Pages + +| Shortcut Key | Description | +| ------------------------------ | ----------------------------------------- | +| e | Switch to edit mode. | +| , (or <) | Move to previous record (when available). | +| . (or >) | Move to next record (when available). | + +## Edit Pages + +| Shortcut Key | Description | +| ------------ | ---------------------------------- | +| f | Focus on the first editable field. | +| v | Switch to view mode. | diff --git a/views/_header.ejs b/views/_header.ejs index 9941163a..0a354553 100644 --- a/views/_header.ejs +++ b/views/_header.ejs @@ -36,8 +36,14 @@