Patent attributes
A keyboard is disposed in a base having a first connecting member and includes a first keyboard body, a second keyboard body, a second connecting member and a connecting assembly. The second keyboard body is adjacent to the first keyboard body. The second connecting member disposed on the first keyboard body or the second keyboard body is to be connected to the first connecting member. The connecting assembly connecting the first keyboard body and the second keyboard body can adjust a distance between the first keyboard body and the second keyboard body. When the first keyboard body is distant from the second keyboard body, the second connecting member is connected to the first connecting member. An electronic device with the keyboard is also disclosed.