U++ framework
Do not panic. Ask here before giving up.

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 Go to previous message
mirek is currently offline  mirek
Messages: 14291
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

 
Read Message
Read Message
Previous Topic: ColumnList BUG FIXED !!! dragging last element makes disappear all other items
Next Topic: BUG: Key states incorrectly cleared on Ubuntu
Goto Forum:
  


Current Time: Fri Jul 03 13:02:07 GMT+2 2026

Total time taken to generate the page: 0.00483 seconds