Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 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

 
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: Mon Apr 28 19:25:03 CEST 2025

Total time taken to generate the page: 0.00670 seconds