aboutsummaryrefslogtreecommitdiff
path: root/src/ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cc')
-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) {