Commit fb31220f authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Keyboard.c: reformat nxagentKeycodeConversionSetup

parent 3c4a8da1
...@@ -1644,15 +1644,14 @@ void nxagentKeycodeConversionSetup(char * rules, char * model) ...@@ -1644,15 +1644,14 @@ void nxagentKeycodeConversionSetup(char * rules, char * model)
{ {
fprintf(stderr, "Info: Keycode conversion is off\n"); fprintf(stderr, "Info: Keycode conversion is off\n");
nxagentKeycodeConversion = False; nxagentKeycodeConversion = False;
return;
} }
else if (nxagentOption(KeycodeConversion) == KeycodeConversionOn) else if (nxagentOption(KeycodeConversion) == KeycodeConversionOn)
{ {
fprintf(stderr, "Info: Keycode conversion is on\n"); fprintf(stderr, "Info: Keycode conversion is on\n");
nxagentKeycodeConversion = True; nxagentKeycodeConversion = True;
return;
} }
else
{
if (rules && model && if (rules && model &&
(strcmp(rules, "evdev") == 0 || (strcmp(rules, "evdev") == 0 ||
strcmp(model, "evdev") == 0)) strcmp(model, "evdev") == 0))
...@@ -1671,9 +1670,9 @@ void nxagentKeycodeConversionSetup(char * rules, char * model) ...@@ -1671,9 +1670,9 @@ void nxagentKeycodeConversionSetup(char * rules, char * model)
#endif #endif
fprintf(stderr, "Info: Keycode conversion auto-determined as off\n"); fprintf(stderr, "Info: Keycode conversion auto-determined as off\n");
nxagentKeycodeConversion = False; nxagentKeycodeConversion = False;
} }
}
} }
void nxagentResetKeycodeConversion(void) void nxagentResetKeycodeConversion(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment