# [PATCH] gitk: Map KP_Divide to focus the search box

1 messages from 2009-03-30 to 2009-03-30. Participants: Michele Ballabio.
Thread: https://gitlist.dev/t/18646

## Michele Ballabio, 2009-03-30 12:55

Subject: [PATCH] gitk: Map KP_Divide to focus the search box
Message-ID: <200903301455.21721.barra_cuda@katamail.com>
URL: https://gitlist.dev/e/200903301455.21721.barra_cuda%40katamail.com

```
Commit 97bed034 changed the behavior of the '/' key on the keyboard,
but the '/' on the keypad was left unused. They now both do the same
thing.

Signed-off-by: Michele Ballabio <barra_cuda@katamail.com>
---
 gitk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gitk b/gitk
index a7294a1..3835a51 100755
--- a/gitk
+++ b/gitk
@@ -2313,6 +2313,7 @@ proc makewindow {} {
     bindkey d "$ctext yview scroll 18 units"
     bindkey u "$ctext yview scroll -18 units"
     bindkey / {focus $fstring}
+    bindkey <Key-KP_Divide> {focus $fstring}
     bindkey <Key-Return> {dofind 1 1}
     bindkey ? {dofind -1 1}
     bindkey f nextfile
-- 
1.6.2.22.gc2ac

```
