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) » Exclamation("") and ESCAPE key
Re: Exclamation("") and ESCAPE key [message #57252 is a reply to message #57250] Thu, 17 June 2021 17:10 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1214
Registered: March 2006
Location: Italy
Senior Contributor
I saw that in CtrlLib, Prompt.cpp

struct PromptDlgWnd__ : TopWindow {
	bool    esc;
	Button *b;

	virtual bool HotKey(dword key) {
		if(TopWindow::HotKey(key))
			return true;
		if(IsAlpha(key))
			return TopWindow::HotKey(K_ALT_A + ToUpper((int)key) - 'A');
	//	if(key == K_ESCAPE && esc)  <----------------------this line
	//		b->PseudoPush();   <----------------------this line
		return false;
	}
};


if I comment the two lines shown above, the ESC key non longer works and the user should press the "OK" button.
Is this a dirty way to solve the problem? May it backfire?

Luigi

[Updated on: Thu, 17 June 2021 17:11]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH] SDL2GUI (virtualgui) key handling improvements.
Next Topic: PdfDraw isn't linked in when compiling for Win on Linux using Clang-MinGW
Goto Forum:
  


Current Time: Sat Aug 23 15:03:42 CEST 2025

Total time taken to generate the page: 0.04261 seconds