From b29690a62a42f857c2f5a2eab81b8d0b93d8b780 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Wed, 15 Jul 2015 12:59:28 -0700 Subject: [PATCH] OSWindow: small fix to the formatting of key event debugging BUG= Change-Id: I09ab785311ec0fa7f3eecb6484a965378a1fef0d Reviewed-on: https://chromium-review.googlesource.com/285835 Reviewed-by: Jamie Madill Tested-by: Corentin Wallez --- util/OSWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/OSWindow.cpp b/util/OSWindow.cpp index 7e0f69c9a..abe8607af 100644 --- a/util/OSWindow.cpp +++ b/util/OSWindow.cpp @@ -153,7 +153,7 @@ static std::string KeyState(const Event::KeyEvent &event) if (event.Shift || event.Control || event.Alt || event.System) { std::ostringstream buffer; - buffer <<" ["; + buffer << " ["; if (event.Shift) { @@ -172,6 +172,7 @@ static std::string KeyState(const Event::KeyEvent &event) buffer << "System"; } + buffer << "]"; return buffer.str(); } return "";