aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2007-11-17 21:14:55 +0100
committerjcid <devnull@localhost>2007-11-17 21:14:55 +0100
commit266bd6b4df244c7cceae31015dde1afd5ef48642 (patch)
treef39ea59650540737df01aa8e37852c2bcfe8d7cd /src
parent36937cb4383bb52812baa1d2cc35af0ce26484f3 (diff)
Added shortcuts: PgDn=Spc PgUp=b Back=BackSpace|, Forw=Shift+Backspace|.
Diffstat (limited to 'src')
-rw-r--r--src/ui.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ui.cc b/src/ui.cc
index a68c14ab..e65b7e78 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -676,6 +676,17 @@ int UI::handle(int event)
a_UIcmd_close_all_bw();
ret = 1;
}
+
+ // Back and Forward shortcuts
+ if ((!event_state(SHIFT) && event_key() == BackSpaceKey) ||
+ event_key() == ',') {
+ a_UIcmd_back(user_data());
+ ret = 1;
+ } else if ((event_state(SHIFT) && event_key() == BackSpaceKey) ||
+ event_key() == '.') {
+ a_UIcmd_forw(user_data());
+ ret = 1;
+ }
}
if (ret == 0) {