Commits

Anonymous committed 2c88a1c

DEV-388867, DEV-39246
Escape key cancels zoom, zoom in closer

I also refactored the code a little to be able to
experiment with more zoom levels.
Review #13

Comments (0)

Files changed (1)

indra/newview/llviewermediafocus.cpp

 {
 	if(mMediaImpl.notNull())
 		mMediaImpl->handleKeyHere(key, mask);
+
+	if (key == KEY_ESCAPE && mMediaHUD.get())
+	{
+		mMediaHUD.get()->close();
+	}
 	return true;
 }