Add support to use characters input in edit mode.

This commit is contained in:
Johns 2012-02-17 16:37:38 +01:00
parent 5c9b85b69b
commit 89ca44206c
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,7 @@
User johns
Date:
Add support to use characters input in edit mode.
Adds trick speed support.
User johns

View File

@ -137,7 +137,11 @@ extern "C" void FeedKeyPress(const char *keymap, const char *key, int repeat,
}
//dsyslog("[softhddev]%s %s, %s\n", __FUNCTION__, keymap, key);
csoft->Put(key, repeat, release);
if (key[1]) { // no single character
csoft->Put(key, repeat, release);
} else if (!csoft->Put(key, repeat, release)) {
cRemote::Put(KBDKEY(key[0])); // feed it for edit mode
}
}
//////////////////////////////////////////////////////////////////////////////