Judge Lucy Koh has struck two blows against Samsung in its ongoing lawsuit with Apple. In a ruling on Tuesday, Koh ruled that Samsung was infringing on one patent, and she invalidated one of the patents it was preparing to bring against Apple in court. Specifically, the keyboard found on the Galaxy Nexus, Galaxy Note, and several other older devices officially violates an Apple autocorrect patent, which covers Android’s system of displaying both what the user is typing and what the system thinks they meant to type. Samsung argued that Apple’s patent could only refer to a hardware keyboard, not the “soft” one used on both iOS and Android. But this claim didn’t hold water, and Koh found the infringement so clear that she granted Apple summary judgment, which means Samsung will need to prove the patent is invalid in order to win.