aboutsummaryrefslogtreecommitdiff
path: root/src/ui.cc
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-05-21 19:09:11 +0200
committerjcid <devnull@localhost>2008-05-21 19:09:11 +0200
commit3fb8bcfd79cb01ca3feaa1ff92876dba6e711381 (patch)
treee906e20ee10afd9c22878ca05b6cb9b3f9c60fe3 /src/ui.cc
parentd5548b1511b131d6a56f24957e5d9c0a1e4e2faf (diff)
- Minor change to CTRL-l text selection.
Diffstat (limited to 'src/ui.cc')
-rw-r--r--src/ui.cc4
1 files changed, 2 insertions, 2 deletions
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;