From cb550f1b65cd56d4c54e54ad3eedf55298515443 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 5 Sep 2003 19:34:33 +0000 Subject: [PATCH] This can't be set to F11--that key is used by screens. Please grep for keyboard symbols before changing global hotkeys. --- stepmania/src/StepMania.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 64c25c6144..86fe0f7f9c 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -745,7 +745,9 @@ bool HandleGlobalInputs( DeviceInput DeviceI, InputEventType type, GameInput Gam /* XXX: Er, this doesn't work; Windows traps this key and takes a screenshot * into the clipboard. I don't want to disable that, though; it's useful. */ - if(DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_F11)) + if( DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_PAUSE) && + ( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_RALT)) || + INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_LALT))) ) { // Save Screenshot. CString sPath;