From 3fb8bcfd79cb01ca3feaa1ff92876dba6e711381 Mon Sep 17 00:00:00 2001 From: jcid Date: Wed, 21 May 2008 19:09:11 +0200 Subject: - Minor change to CTRL-l text selection. --- src/ui.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui.cc') diff --git a/src/ui.cc b/src/ui.cc index b63319a1..ce1f1cfa 100644 --- a/src/ui.cc +++ b/src/ui.cc @@ -59,8 +59,8 @@ int NewInput::handle(int e) _MSG("NewInput::handle event=%d\n", e); if (event_state(CTRL)) { if (e == KEY && k == 'l') { - // Trick to make text selected when already focused. - throw_focus(); take_focus(); + // Make text selected when already focused. + position(size(), 0); return 0; } else if (k == 'o' || k == 'r' || k == HomeKey || k == EndKey) return 0; -- cgit v1.2.3