aboutsummaryrefslogtreecommitdiff
path: root/src/dillo.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-05-03 11:48:45 -0400
committerJorge Arellano Cid <jcid@dillo.org>2009-05-03 11:48:45 -0400
commit54f8f849e170b7e8da8722b3912e544fca14e483 (patch)
tree358d0f872d41ff9f9d44bac60a61b08752695820 /src/dillo.cc
parenta7e8afc8f2f90e55be9df6563b4ef0cc545b74b5 (diff)
Added configurable keybindings! (in ~/.dillo/keysrc) # part1
Diffstat (limited to 'src/dillo.cc')
-rw-r--r--src/dillo.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dillo.cc b/src/dillo.cc
index ef902bd6..9ed4578b 100644
--- a/src/dillo.cc
+++ b/src/dillo.cc
@@ -34,6 +34,7 @@
#include "prefs.h"
#include "prefsparser.hh"
+#include "keys.hh"
#include "bw.h"
#include "misc.h"
#include "nav.h"
@@ -261,6 +262,9 @@ int main(int argc, char **argv)
// create ~/.dillo if not present
Paths::init();
+ // initialize default key bindings
+ Keys::init();
+
// set the default values for the preferences
a_Prefs_init();
@@ -268,6 +272,10 @@ int main(int argc, char **argv)
if ((fp = Paths::getPrefsFP(PATHS_RC_PREFS))) {
PrefsParser::parse(fp);
}
+ // parse keysrc
+ if ((fp = Paths::getPrefsFP(PATHS_RC_KEYS))) {
+ Keys::parse(fp);
+ }
// initialize internal modules
a_Dpi_init();