"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/DialogBox.cpp" between
xfe-1.41.tar.gz and xfe-1.42.tar.gz

About: Xfe (X File Explorer) is a file manager and browser (using the FOX toolkit).

DialogBox.cpp  (xfe-1.41):DialogBox.cpp  (xfe-1.42)
skipping to change at line 160 skipping to change at line 160
{ {
if (FXTopWindow::onKeyPress(sender, sel, ptr)) if (FXTopWindow::onKeyPress(sender, sel, ptr))
{ {
return(1); return(1);
} }
if (((FXEvent*)ptr)->code == KEY_Escape) if (((FXEvent*)ptr)->code == KEY_Escape)
{ {
handle(this, FXSEL(SEL_COMMAND, ID_CANCEL), NULL); handle(this, FXSEL(SEL_COMMAND, ID_CANCEL), NULL);
return(1); return(1);
} }
FXEvent* event = (FXEvent*)ptr;
switch (event->code)
{
case KEY_Escape:
handle(this, FXSEL(SEL_COMMAND, ID_CANCEL), NULL);
return(1);
case KEY_KP_Enter:
case KEY_Return:
handle(this, FXSEL(SEL_COMMAND, ID_ACCEPT), NULL);
return(1);
default:
FXTopWindow::onKeyPress(sender, sel, ptr);
return(1);
}
return(0); return(0);
} }
// Keyboard release; handle escape to close the dialog // Keyboard release; handle escape to close the dialog
long DialogBox::onKeyRelease(FXObject* sender,FXSelector sel,void* ptr) long DialogBox::onKeyRelease(FXObject* sender,FXSelector sel,void* ptr)
{ {
if(FXTopWindow::onKeyRelease(sender,sel,ptr)) if(FXTopWindow::onKeyRelease(sender,sel,ptr))
{ {
return 1; return 1;
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 19 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS