aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.h
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-02-14 08:21:30 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-02-14 08:21:30 +0530
commite664b2d29f67724789d3a4a083ef07c13bec8904 (patch)
tree2f911f59c2db1413304d1c2466789eb250c541d1 /src/nnn.h
parenta0339adf840c0a5233fa2046e805c907c8ae8479 (diff)
downloadnnn-e664b2d29f67724789d3a4a083ef07c13bec8904.tar.gz
Compile option O_NOMOUSE to disable mouse support
Diffstat (limited to 'src/nnn.h')
-rw-r--r--src/nnn.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nnn.h b/src/nnn.h
index 168b43b..3763883 100644
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -96,7 +96,9 @@ enum action {
SEL_QUITCD,
SEL_QUIT,
SEL_QUITFAIL,
+#ifndef NOMOUSE
SEL_CLICK,
+#endif
};
/* Associate a pressed key to an action */
@@ -245,5 +247,7 @@ static struct key bindings[] = {
{ CONTROL('Q'), SEL_QUIT },
/* Quit with an error code */
{ 'Q', SEL_QUITFAIL },
+#ifndef NOMOUSE
{ KEY_MOUSE, SEL_CLICK },
+#endif
};