message: contour: Fixes capslock.
diff: @@ -466,6 +466,19 @@ optional<terminal::InputEvent> makeInputEvent(int _key, terminal::Modifier _mods
  case GLFW_KEY_9: return CharInputEvent{'9', _mods};
  case GLFW_KEY_SEMICOLON: return CharInputEvent{';', _mods};
  case GLFW_KEY_EQUAL: return CharInputEvent{'=', _mods};
  + case GLFW_KEY_LEFT_BRACKET: return CharInputEvent{'[', _mods};
  + case GLFW_KEY_BACKSLASH: return CharInputEvent{'\\', _mods};
  + case GLFW_KEY_RIGHT_BRACKET: return CharInputEvent{']', _mods};
  + case GLFW_KEY_GRAVE_ACCENT: return CharInputEvent{'`', _mods};
  + }
  +
  + if (_mods)
  + {
  + // Do these mappings only iff modifiers are present, because
  + // we do not want to track CAPSLOCK, hence,
  + // the character callback (onChar) will kick in.
  + switch (_key)
  + {
  case GLFW_KEY_A: return CharInputEvent{'a', _mods};
  case GLFW_KEY_B: return CharInputEvent{'b', _mods};
  case GLFW_KEY_C: return CharInputEvent{'c', _mods};
  @@ -492,10 +505,7 @@ optional<terminal::InputEvent> makeInputEvent(int _key, terminal::Modifier _mods
  case GLFW_KEY_X: return CharInputEvent{'x', _mods};
  case GLFW_KEY_Y: return CharInputEvent{'y', _mods};
  case GLFW_KEY_Z: return CharInputEvent{'z', _mods};
  - case GLFW_KEY_LEFT_BRACKET: return CharInputEvent{'[', _mods};
  - case GLFW_KEY_BACKSLASH: return CharInputEvent{'\\', _mods};
  - case GLFW_KEY_RIGHT_BRACKET: return CharInputEvent{']', _mods};
  - case GLFW_KEY_GRAVE_ACCENT: return CharInputEvent{'`', _mods};
  + }
  }
  return nullopt;
  