From 17a8e9e2c263da394fe7638f199d5c54971d4f75 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Sun, 22 Jan 2023 11:11:24 -0700 Subject: [PATCH] Tweak formatting --- src/SFML/Window/Unix/KeyboardImpl.cpp | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/src/SFML/Window/Unix/KeyboardImpl.cpp b/src/SFML/Window/Unix/KeyboardImpl.cpp index d498d3ef3..2cf9259a2 100644 --- a/src/SFML/Window/Unix/KeyboardImpl.cpp +++ b/src/SFML/Window/Unix/KeyboardImpl.cpp @@ -647,12 +647,23 @@ String KeyboardImpl::getDescription(Keyboard::Scancode code) // these scancodes actually correspond to keys with input // but we want to return their description, not their behaviour - if (code == Keyboard::Scan::Enter || code == Keyboard::Scan::Escape || code == Keyboard::Scan::Backspace || - code == Keyboard::Scan::Tab || code == Keyboard::Scan::Space || code == Keyboard::Scan::ScrollLock || - code == Keyboard::Scan::Pause || code == Keyboard::Scan::Delete || code == Keyboard::Scan::NumpadDivide || - code == Keyboard::Scan::NumpadMultiply || code == Keyboard::Scan::NumpadMinus || - code == Keyboard::Scan::NumpadPlus || code == Keyboard::Scan::NumpadEqual || - code == Keyboard::Scan::NumpadEnter || code == Keyboard::Scan::NumpadDecimal) + // clang-format off + if (code == Keyboard::Scan::Enter || + code == Keyboard::Scan::Escape || + code == Keyboard::Scan::Backspace || + code == Keyboard::Scan::Tab || + code == Keyboard::Scan::Space || + code == Keyboard::Scan::ScrollLock || + code == Keyboard::Scan::Pause || + code == Keyboard::Scan::Delete || + code == Keyboard::Scan::NumpadDivide || + code == Keyboard::Scan::NumpadMultiply || + code == Keyboard::Scan::NumpadMinus || + code == Keyboard::Scan::NumpadPlus || + code == Keyboard::Scan::NumpadEqual || + code == Keyboard::Scan::NumpadEnter || + code == Keyboard::Scan::NumpadDecimal) + // clang-format on { checkInput = false; }