Merge remote-tracking branch 'alederer/multiKeybind'
This commit is contained in:
commit
03c003276c
8 changed files with 522 additions and 459 deletions
|
|
@ -218,3 +218,21 @@ double absCubSquiTri(double x) {
|
|||
return fabs(cubSquiTri(x));
|
||||
}
|
||||
|
||||
String getMultiKeysName(const int* keys, int keyCount, bool emptyNone) {
|
||||
String ret;
|
||||
for (int i=0; i<keyCount; i++) {
|
||||
if (keys[i]==0) continue;
|
||||
if (!ret.empty()) ret+=", ";
|
||||
ret+=getKeyName(keys[i]);
|
||||
}
|
||||
|
||||
if (ret.empty()) {
|
||||
if (emptyNone) {
|
||||
return "";
|
||||
} else {
|
||||
return _("<nothing>");
|
||||
}
|
||||
} else {
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue