We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f59b53 commit b82e3baCopy full SHA for b82e3ba
remote.cpp
@@ -123,18 +123,19 @@ bool KeyPairList::hitKey(string key, const cxxtools::Char* kbd)
123
key[i] = tolower(key[i]);
124
}
125
126
+ if ( key == "kbd" ) {
127
+ std::size_t n = 0;
128
+ while (kbd[n]) {
129
+ cRemote::Put(KBDKEY(kbd[n]));
130
+ ++n;
131
+ }
132
+ return true;
133
134
+
135
136
for (int i=0;i<(int)keys.size();i++)
137
{
138
if (string(keys[i].str) == key) {
- if ( key == "kbd" ) {
- static const cxxtools::Char term(0);
- std::size_t n = 0;
- while( kbd[n] != term ) {
- cRemote::Put(KBDKEY(kbd[n]));
- ++n;
- }
- return true;
139
cRemote::Put(keys[i].key);
140
return true;
141
0 commit comments