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 |
|
forlano
Messages: 1202 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
|
|
|
|
|
Goto Forum:
Current Time: Fri Nov 01 01:07:14 CET 2024
Total time taken to generate the page: 0.07380 seconds
|