Skip to contentSkip to conversation

gitk: Add workaround for system where Shift-F5 mapped to Shift-XF86_Switch_VT_5

PATCH New Andrew Wong 1 participant 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gitk: Add workaround for system where Shift-F5 mapped to Shift-XF86_Switch_VT_5

I was running into the same issue too. It turns out that on some machines Shift-F5 is mapped to Shift-XF86_Switch_VT_5. My patch includes a workaround. The same workaround was used for Shift-F4.

Andrew Wong (1):
gitk: Add workaround for system where Shift-F5 mapped to

    Shift-XF86_Switch_VT_5
 gitk-git/gitk | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
1.7.12.1.382.gb0576a6
#1 lore raw

PATCH 1/1 gitk: Add workaround for system where Shift-F5 mapped to Shift-XF86_Switch_VT_5

The same workaround was used for Shift-F4 in:
cea07cf8dc9b3677e0c50433c0d72bce83adbdc7

---
 gitk-git/gitk | 1 +
 1 file changed, 1 insertion(+)
gitk-git/gitk +1 -0
index d93bd99..698b84a 100755
@@ -2496,6 +2496,7 @@ proc makewindow {} {
     bindkey f nextfile
     bind . <F5> updatecommits
     bind . <Shift-F5> reloadcommits
+    catch { bind . <Shift-Key-XF86_Switch_VT_5> reloadcommits }
     bind . <F2> showrefs
     bind . <Shift-F4> {newview 0}
     catch { bind . <Shift-Key-XF86_Switch_VT_4> {newview 0} }
Signature · 1 line
1.7.12.1.382.gb0576a6