Exit the move-resize-mode when the close confirmation dialog is displayed
This commit is contained in:
parent
77638fcaa0
commit
b58936a6a2
|
@ -1,5 +1,7 @@
|
|||
2020-03-07 Markus Gans <guru.mail@muenster.de>
|
||||
* Fixes keyboard input buffer problem when opening a modal dialog
|
||||
* Exit the move-resize-mode when the close confirmation dialog
|
||||
is displayed
|
||||
|
||||
2020-03-05 Markus Gans <guru.mail@muenster.de>
|
||||
* Unbuffered reading of keystrokes for better latency
|
||||
|
|
|
@ -355,6 +355,7 @@ void FApplication::showParameterUsage()
|
|||
//----------------------------------------------------------------------
|
||||
void FApplication::closeConfirmationDialog (FWidget* w, FCloseEvent* ev)
|
||||
{
|
||||
app_object->unsetMoveSizeMode();
|
||||
const int ret = FMessageBox::info ( w, "Quit"
|
||||
, "Do you really want\n"
|
||||
"to quit the program ?"
|
||||
|
|
|
@ -1353,63 +1353,56 @@ inline void FDialog::moveSizeKey (FKeyEvent* ev)
|
|||
{
|
||||
case fc::Fkey_up:
|
||||
moveUp(1);
|
||||
ev->accept();
|
||||
break;
|
||||
|
||||
case fc::Fkey_down:
|
||||
moveDown(1);
|
||||
ev->accept();
|
||||
break;
|
||||
|
||||
case fc::Fkey_left:
|
||||
moveLeft(1);
|
||||
ev->accept();
|
||||
break;
|
||||
|
||||
case fc::Fkey_right:
|
||||
moveRight(1);
|
||||
ev->accept();
|
||||
break;
|
||||
|
||||
case fc::Fmkey_up:
|
||||
case fc::Fkey_sr:
|
||||
if ( reduceHeight(1) )
|
||||
ev->accept();
|
||||
reduceHeight(1);
|
||||
break;
|
||||
|
||||
case fc::Fmkey_down:
|
||||
case fc::Fkey_sf:
|
||||
if ( expandHeight(1) )
|
||||
ev->accept();
|
||||
expandHeight(1);
|
||||
break;
|
||||
|
||||
case fc::Fmkey_left:
|
||||
case fc::Fkey_sleft:
|
||||
if ( reduceWidth(1) )
|
||||
ev->accept();
|
||||
reduceWidth(1);
|
||||
break;
|
||||
|
||||
case fc::Fmkey_right:
|
||||
case fc::Fkey_sright:
|
||||
if ( expandWidth(1) )
|
||||
ev->accept();
|
||||
expandWidth(1);
|
||||
break;
|
||||
|
||||
case fc::Fkey_return:
|
||||
case fc::Fkey_enter:
|
||||
acceptMoveSize();
|
||||
ev->accept();
|
||||
break;
|
||||
|
||||
case fc::Fkey_escape:
|
||||
case fc::Fkey_escape_mintty:
|
||||
cancelMoveSize();
|
||||
ev->accept();
|
||||
return;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// Accept for all, so that parent widgets will not receive keystrokes
|
||||
ev->accept();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue