Home » U++ Library support » U++ Library : Other (not classified elsewhere) » BUG: EditKeys
|
Re: BUG: EditKeys [message #23552 is a reply to message #23542] |
Fri, 30 October 2009 14:57  |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
Thanks, a good observation.
Fixed this way:
String StoreKeys()
{
String out;
const VectorMap<String, Vector<KeyBinding> >& g = sKeys();
for(int i = 0; i < g.GetCount(); i++) {
out << "- " << AsCString(g.GetKey(i)) << ";\r\n";
void RestoreKeys(const String& data)
{
SetDefaultKeys();
CParser p(data);
try {
while(!p.IsEof()) {
try {
p.PassChar('-');
String group;
if(p.IsId()) // backward compatibility
group = p.ReadId();
else
group = p.ReadString();
[Updated on: Fri, 30 October 2009 14:57] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Apr 28 19:29:09 CEST 2025
Total time taken to generate the page: 0.04232 seconds
|