git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] git-gui: allow closing console window with Escape
@ 2019-12-06 22:20 Pratyush Yadav
  2019-12-07 16:24 ` Johannes Schindelin
  0 siblings, 1 reply; 9+ messages in thread
From: Pratyush Yadav @ 2019-12-06 22:20 UTC (permalink / raw)
  To: git

It is often expected that popup windows like the console window be
close-able with Esc.

Signed-off-by: Pratyush Yadav <me@yadavpratyush.com>
---
This was requested by https://github.com/prati0100/git-gui/issues/17

 lib/console.tcl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/console.tcl b/lib/console.tcl
index 1f3248f..8828f6f 100644
--- a/lib/console.tcl
+++ b/lib/console.tcl
@@ -88,6 +88,7 @@ method _init {} {
 	bind_button3 $w_t "tk_popup $w.ctxm %X %Y"
 	bind $w_t <$M1B-Key-a> "$w_t tag add sel 0.0 end;break"
 	bind $w_t <$M1B-Key-A> "$w_t tag add sel 0.0 end;break"
+	bind $w <Key-Escape> [list destroy $w]
 }

 method exec {cmd {after {}}} {
--
2.24.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-12-13 13:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-06 22:20 [PATCH] git-gui: allow closing console window with Escape Pratyush Yadav
2019-12-07 16:24 ` Johannes Schindelin
2019-12-08 19:40   ` Pratyush Yadav
2019-12-09  9:18     ` Johannes Schindelin
2019-12-09 15:53       ` Vasili Novikov
2019-12-10 12:02         ` Pratyush Yadav
2019-12-10 12:11           ` Vasili Novikov
2019-12-10 13:31             ` Pratyush Yadav
2019-12-13 13:29               ` Johannes Schindelin

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).