diff options
Diffstat (limited to 'util/fbrun/FbRun.cc')
-rw-r--r-- | util/fbrun/FbRun.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc index 7fde936..fdc8b38 100644 --- a/util/fbrun/FbRun.cc +++ b/util/fbrun/FbRun.cc | |||
@@ -244,7 +244,16 @@ void FbRun::keyPressEvent(XKeyEvent &ke) { | |||
244 | if (IsModifierKey(ks)) | 244 | if (IsModifierKey(ks)) |
245 | return; | 245 | return; |
246 | 246 | ||
247 | if (FbTk::KeyUtil::instance().isolateModifierMask(ke.state)) { // a modifier key is down | 247 | if (m_autocomplete && isprint(keychar[0])) { |
248 | did_tab_complete = true; | ||
249 | if (m_completion_pos == std::string::npos) { | ||
250 | m_completion_pos = cursorPosition(); | ||
251 | } else { | ||
252 | ++m_completion_pos; | ||
253 | } | ||
254 | tabCompleteApps(); | ||
255 | } else if (FbTk::KeyUtil::instance().isolateModifierMask(ke.state)) { | ||
256 | // a modifier key is down | ||
248 | if ((ke.state & ControlMask) == ControlMask) { | 257 | if ((ke.state & ControlMask) == ControlMask) { |
249 | switch (ks) { | 258 | switch (ks) { |
250 | case XK_p: | 259 | case XK_p: |