From 241ca53e4705c389b40c3a133727a2833085ae28 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 11 Mar 2016 23:01:38 -0500 Subject: Added "?" to display list of keyboard shortcuts --- app/Controller/Doc.php | 8 +++++++ app/Template/config/about.php | 35 +----------------------------- app/Template/config/keyboard_shortcuts.php | 35 ++++++++++++++++++++++++++++++ app/Template/layout.php | 1 + 4 files changed, 45 insertions(+), 34 deletions(-) create mode 100644 app/Template/config/keyboard_shortcuts.php (limited to 'app') diff --git a/app/Controller/Doc.php b/app/Controller/Doc.php index 6f309d48..f85326ac 100644 --- a/app/Controller/Doc.php +++ b/app/Controller/Doc.php @@ -54,4 +54,12 @@ class Doc extends Base $this->response->html($this->helper->layout->app('doc/show', $this->readFile($filename))); } + + /** + * Display keyboard shortcut + */ + public function shortcuts() + { + $this->response->html($this->template->render('config/keyboard_shortcuts')); + } } diff --git a/app/Template/config/about.php b/app/Template/config/about.php index c7600d20..75d1320e 100644 --- a/app/Template/config/about.php +++ b/app/Template/config/about.php @@ -48,40 +48,7 @@ - -
-

- -

- -

- -

- -
+render('config/keyboard_shortcuts') ?>