summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--src/controller/keyboard.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/controller/keyboard.c b/src/controller/keyboard.c
index c6e3c48..333e2d4 100644
--- a/src/controller/keyboard.c
+++ b/src/controller/keyboard.c
@@ -1,6 +1,9 @@
1#include "keyboard.h"1#include "keyboard.h"
2#include "clear_selection.h"2#include "clear_selection.h"
3#include "selection_from_db.h"3#include "selection_from_db.h"
4#include "../view/exp004state0.h"
5
6#define S exp004state0
47
5void8void
6keyboard (unsigned char key, int x, int y)9keyboard (unsigned char key, int x, int y)
@@ -22,6 +25,16 @@ keyboard (unsigned char key, int x, int y)
22 */25 */
23 selection_from_db ();26 selection_from_db ();
24 break;27 break;
28
29 case 'z':
30 /*
31 * Toggle zoom mode on and off.
32 */
33 if (S.zoom)
34 S.zoom = false;
35 else
36 S.zoom = true;
37 break;
25 }38 }
2639
27 return;40 return;

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.