Remove some format rule (#10919)

* remove some rules
* format all codes with new format rule
This commit is contained in:
minggo
2022-05-04 13:09:24 +08:00
committed by GitHub
parent e9a4bdd4dc
commit 271cc5cf23
1148 changed files with 32411 additions and 34416 deletions
+6 -6
View File
@@ -159,12 +159,12 @@
namespace {
// Modifier Key State
bool stateShiftLeft = false;
bool stateShiftRight = false;
bool stateControlLeft = false;
bool stateShiftLeft = false;
bool stateShiftRight = false;
bool stateControlLeft = false;
bool stateControlRight = false;
bool stateOptionLeft = false;
bool stateOptionRight = false;
bool stateOptionLeft = false;
bool stateOptionRight = false;
// Refer to https://github.com/glfw/glfw/blob/master/src/cocoa_window.m.
int keyCodes[0xff + 1] = {-1};
@@ -352,7 +352,7 @@ int translateKeycode(int keyCode) {
if (keyCode < 0 || keyCode > 0xff)
return -1;
int key = keyCodes[keyCode];
int key = keyCodes[keyCode];
int keyInWeb = -1;
if (key >= GLFW_KEY_0 && key <= GLFW_KEY_9)
keyInWeb = key;