Key structure and electronic equipment

By introducing the coordination between magnetic components and magnetic field sensors into the button structure, the problems of waterproofing and hand feel are solved, and efficient waterproofing and low-cost production of electronic devices are achieved.

CN119993769APending Publication Date: 2025-05-13ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311502886.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-10
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In the prior art, the button structure cannot take into account both the feel and the cost while waterproofing.

Method used

A key structure including a base, a key cap and a magnetic component is adopted. By slidingly cooperating with the guide surface, the magnetic component can be synchronously moved in the first direction and the second direction, triggering the magnetic field sensor, thereby converting mechanical movement into an electrical signal.

Benefits of technology

It realizes the fully enclosed waterproof performance of electronic devices, while retaining the true tactile feedback of physical buttons, avoiding the need to increase vibration motors and greatly reducing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119993769A_ABST
    Figure CN119993769A_ABST
Patent Text Reader

Abstract

The invention provides a key structure and electronic equipment, and the key structure comprises a base which is provided with a guide surface; the key cap is buckled with the base, and the key cap can move along a first direction; the magnetic component abuts against the key cap, the key cap and the magnetic component move synchronously in the first direction, and the magnetic component can move relative to the key cap in the second direction intersecting with the first direction; the magnetic component is in sliding fit with the guide face, the arrangement direction of the guide face intersects with the first direction and the second direction at the same time so that the magnetic component can move in the first direction and the second direction at the same time, and the magnetic component is used for triggering the magnetic field sensor by moving in the second direction. According to the key structure, the magnetic component is arranged in the key cap, the magnetic field sensor in the electronic equipment can be triggered through the magnetic component, opening of a shell of the electronic equipment is avoided, and the waterproof performance of the electronic equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a key structure and electronic equipment. Background Art

[0002] As the types of electronic products increase, consumers have more and more stringent requirements on the quality of electronic products, especially the waterproof function of electronic products has become a growing concern of consumers. In the design process of the waterproofness of electronic products, the waterproof design of its buttons is particularly important.

[0003] At present, the waterproof design of the key structure of major electronic products on the market is generally achieved in the form of rubber plugs or oil seals. When it comes to movable key structures, the difficulty of waterproofing is greatly increased. In some related technologies, virtual keys are formed by using touch keys such as capacitors. Although complex waterproof structures are not required, the mechanical touch of the keys is sacrificed and blind operation is impossible. Some devices will simulate the touch of keys by adding vibration motors, but this will greatly increase costs. Summary of the invention

[0004] The embodiments of the present invention are intended to at least solve the problem that the key structure in the prior art cannot take into account both hand feel and cost while being waterproof, and provide a key structure and an electronic device.

[0005] In the first aspect, an embodiment of the present invention discloses a key structure, comprising: a base, having a guide surface; a key cap, which is buckled with the base and can move along a first direction; a magnetic component, which abuts against the key cap, and the key cap and the magnetic component move synchronously in the first direction, and the magnetic component is movable relative to the key cap in a second direction intersecting with the first direction; the magnetic component is slidably matched with the guide surface, and the setting direction of the guide surface intersects with the first direction and the second direction at the same time, so that the magnetic component moves along the first direction and the second direction at the same time, and the magnetic component is used to trigger the magnetic field sensor by moving in the second direction.

[0006] In a second aspect, an embodiment of the present invention further discloses an electronic device, comprising: a shell, a magnetic field sensor and the above-mentioned key structure, wherein the key structure is arranged on the outer surface of the shell, and the magnetic field sensor is arranged inside the shell and corresponds to the position of the key structure.

[0007] The key structure of the embodiment of the present invention can trigger the magnetic field sensor through the magnetic component by setting a magnetic component in the key cap, and convert the mechanical movement of the magnetic component into an electrical signal inside the electronic device. Since the magnetic field can penetrate the housing of the electronic device and trigger the magnetic field sensor inside the electronic device, there is no need to provide a mounting hole or opening structure connecting the inside and outside of the housing on the housing of the electronic device, so that the housing of the electronic device can be fully enclosed, thereby effectively improving the waterproof performance of the electronic device. At the same time, since the key structure is a physical structure, the real tactile feedback of the physical key can be retained, and there is no need to add an additional vibration motor to simulate the physical feel, thereby greatly reducing the cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 An exploded diagram of a key structure according to an embodiment of the present invention;

[0009] Figure 2 This is a structural schematic diagram of a key structure in a triggering state according to an embodiment of the present invention;

[0010] Figure 3 This is a structural schematic diagram of a key structure in a pop-up state according to an embodiment of the present invention;

[0011] Figure 4 A schematic structural diagram of a key cap of a key structure according to an embodiment of the present invention;

[0012] Figure 5 A three-dimensional diagram of a key cap of a key structure according to another embodiment of the present invention;

[0013] Figure 6 A schematic structural diagram of a base of a key structure according to another embodiment of the present invention;

[0014] Figure 7 A side sectional view of a base of a key structure according to another embodiment of the present invention;

[0015] Figure 8 A schematic diagram of the cooperation between the first connecting portion and the second connecting portion of a key structure according to another embodiment of the present invention;

[0016] Fig. 9 A schematic structural diagram of a key structure of another embodiment of the present invention;

[0017] Fig.10 A schematic structural diagram of a key structure according to another embodiment of the present invention;

[0018] Fig.11 An assembly diagram of a housing and a case structure of an electronic device according to an embodiment of the present invention;

[0019] List of reference numerals:

[0020] 10. base; 11. guide surface; 12. first connection part; 13. matching surface; 14. guide groove; 15. avoidance groove; 151. arc wall; 16. annular protrusion; 20. key cap; 21. pressure plate; 22. fixing part; 221. fixing column; 23. elastic member; 24. annular side wall; 241. second connection part; 25. limit groove; 26. limit strip; 27. slide groove; 28. positioning groove; 30. magnetic component;

[0021] 31. Slider; 311. First end surface; 312. Second end surface; 313. Connecting column; 32. Magnet;

[0022] 40. Spring steel sheet; 50. Magnetic field sensor; 60. Housing. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the technical solution of the present invention, the key structure and electronic device provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0024] Example embodiments will be described more fully below with reference to the accompanying drawings, but example embodiments may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, the purpose of providing these embodiments is to make this disclosure thorough and complete and to enable those skilled in the art to fully understand the scope of this disclosure.

[0025] As the types of electronic products increase, consumers have more and more stringent requirements on the quality of electronic products, especially the waterproof function of electronic products has become a growing concern of consumers. In the design process of the waterproofness of electronic products, the waterproof design of its buttons is particularly important.

[0026] At present, the waterproof design of the key structure of major electronic products on the market is generally achieved in the form of rubber plugs or oil seals. When it comes to movable key structures, the difficulty of waterproofing is greatly increased. In some related technologies, virtual keys are formed by using touch keys such as capacitors. Although complex waterproof structures are not required, the mechanical touch of the keys is sacrificed and blind operation is impossible. Some devices will simulate the touch of keys by adding vibration motors, but this will greatly increase costs.

[0027] In order to solve the above problems, Figures 1 to 3 An embodiment of the present invention shown in FIG. 1 discloses a key structure, such as Figure 1 As shown, the key structure includes: a base 10 , a key cap 20 and a magnetic component 30 , wherein the base 10 has a guide surface 11 .

[0028] like Figure 2 and Figure 3As shown, the key cap 20 is buckled with the base 10, and the key cap 20 can move along the first direction; the magnetic component 30 is in contact with the key cap 20, and the key cap 20 and the magnetic component 30 move synchronously in the first direction, and the magnetic component 30 is movable relative to the key cap 20 in the second direction intersecting with the first direction; the magnetic component 30 is slidably matched with the guide surface 11, and the setting direction of the guide surface 11 intersects with the first direction and the second direction at the same time, so that the magnetic component 30 moves in the first direction and the second direction at the same time, and the magnetic component 30 is used to trigger the magnetic field sensor 50 by moving in the second direction.

[0029] When in use, the key cap 20 moves along the first direction under the action of force, so that the key cap 20 drives the magnetic component 30 to move along the first direction. At the same time, the magnetic component 30 slides with the guide surface 11. Due to the existence of the guide surface 11, under the guidance of the guide surface 11, the magnetic component 30 will move along the second direction intersecting the first direction during the process of moving along the first direction, so that the magnetic component 30 triggers the magnetic field sensor 50 during the process of moving along the second direction.

[0030] It should be noted that the magnetic field sensor 50 is a device that can convert various magnetic fields and their changes into electrical signals for output. In this embodiment, the magnetic field sensor 50 can be a Hall sensor or other sensors that can detect changes in magnetic fields.

[0031] The key structure of the embodiment of the present invention can convert the mechanical movement of the magnetic component 30 into an electrical signal inside the electronic device through the magnetic component 30 and the triggering magnetic field sensor 50 by arranging the magnetic component 30 inside the electronic device. Since the magnetic field can penetrate the housing of the electronic device and trigger the magnetic field sensor 50 inside the electronic device, there is no need to provide a mounting hole or opening structure connecting the inside and outside of the housing on the housing of the electronic device, so that the housing of the electronic device can be fully enclosed, thereby effectively improving the waterproof performance of the electronic device. At the same time, since the key structure is a physical structure, the real tactile feedback of the physical key can be retained, and there is no need to add an additional vibration motor to simulate the physical feel, thereby greatly reducing the cost.

[0032] In addition, it should be noted that, in the present embodiment, the first direction is the direction in which the external force is applied when the button is triggered, and the magnetic component 30 triggers the magnetic field sensor 50 by moving along the second direction, that is, the direction in which the magnetic component 30 triggers the magnetic field sensor 50 is not the same as the direction in which the button is pressed. This is because the magnetic field sensor 50 detects the change in magnetic field strength, and the magnetic component 30 needs to move a longer distance relative to the magnetic field sensor 50 in order to cause a sufficient change in magnetic field strength. Therefore, if the moving direction of the magnetic component 30 triggering the magnetic field sensor 50 is consistent with the pressing direction, it is necessary to move a longer distance in the direction of pressing the button, and the direction in which the button is usually pressed is toward the inside of the electronic device. Therefore, when the button is pressed, more space inside the electronic device will be occupied, thereby affecting the setting of other components inside the electronic device, and therefore it is easily restricted by the internal space of the electronic device, thereby reducing the scope of application of the button structure. By changing the moving direction of the magnetic component 30 triggering the magnetic field sensor 50, the button structure is prevented from occupying too much space inside the electronic device, thereby reducing the restriction of the internal space of the electronic device on the button structure and improving the scope of application of the button structure.

[0033] like Figure 4 As shown, the key cap 20 includes: a pressing plate 21, a fixing portion 22 and an elastic member 23. The pressing plate 21 is arranged perpendicular to the first direction, and the magnetic member 30 abuts against the side of the pressing plate 21 facing the base 10; the fixing portion 22 is fixedly connected to the pressing plate 21, and the fixing portion 22 and the magnetic member 30 are arranged at intervals along the second direction; the elastic member 23 is connected between the fixing portion 22 and the magnetic member 30. By setting the fixing portion 22 and the elastic member 23, the triggering and rebounding of the key structure can be achieved by pressing down.

[0034] Specifically, the key structure has the following features: Figure 2 The trigger status shown and Figure 3 The pop-up state is shown.

[0035] like Figure 2 As shown, in the trigger state, the pressing plate 21 moves toward the base 10 (i.e., toward Figure 2 At the same time, the pressing plate 21 also pushes the magnetic component 30 to slide with the guide surface 11. Under the guidance of the guide surface 11, the magnetic component 30 and the pressing plate 21 move synchronously and move toward the direction close to the fixing portion 22 (i.e., toward the fixing portion 22). Figure 2 The magnetic field sensor 50 is triggered by the movement of the right side of the elastic member 23, and the elastic member 23 is elastically deformed.

[0036] like Figure 3As shown in the figure, in the pop-up state, the downward pressure F1 on the pressure plate 21 disappears, and under the action of the elastic force F2 of the elastic member 23, the magnetic component 30 slides with the guide surface 11, and under the guidance of the guide surface 11, the magnetic component 30 moves in a direction away from the fixing portion 22 (i.e., toward Figure 3 At the same time, the magnetic component 30 pushes the pressing plate 21 to move away from the base 10 (i.e., to the right side of the base 10). Figure 3 ).

[0037] It can be seen that the key structure of the embodiment of the present invention converts the displacement of the pressure plate 21 in the first direction into the displacement of the magnetic component 30 in the second direction through the cooperation of the pressure plate 21, the magnetic component 30 and the guide surface 11, thereby triggering the magnetic field sensor 50 by moving along the second direction, thereby avoiding the key structure from occupying too much space inside the electronic device, thereby reducing the restriction of the internal space of the electronic device on the key structure and improving the application range of the key structure.

[0038] like Figure 3 In the illustrated embodiment, an angle α is formed between the pressure plate 21 and the guide surface 11, and the value range of the angle α is 0°<α<90°. By forming an angle between the guide surface 11 and the pressure plate 21, the pressure plate 21 can push the magnetic component 30 to slide with the guide surface 11, and the magnetic component 30 can also push the pressure plate 21 to move in the opposite direction, thereby realizing the conversion of the direction of the external force and the direction of triggering the magnetic field sensor 50.

[0039] In such Figure 5 In another embodiment shown, a limit strip 26 is provided on one side of the pressure plate 21 facing the base 10, and the limit strip 26 extends along the second direction. Two limit strips 26 are arranged at intervals to form a slide groove 27 extending along the second direction. The magnetic component 30 is arranged in the slide groove 27 so that it can slide along the second direction. By providing the limit strip 26 and forming the slide groove 27, the moving direction of the magnetic component 30 can be stabilized to avoid the failure to trigger the magnetic field sensor 50 due to the deviation of the magnetic component 30. In addition, in order to facilitate the fixing of the elastic member 23, a fixing column 221 for fixing the elastic member 23 is provided on the fixing portion 22, and the fixing column 221 extends along the second direction.

[0040] It can be understood that, in this embodiment, the elastic member 23 is a spring, and both ends of the spring are respectively connected to the magnetic component 30 and the fixed column 221. Under the action of the downward pressure F1, the magnetic component 30 compresses the spring by moving toward the fixed column 221. Therefore, when the downward pressure F1 disappears, the spring stretches and resets, thereby providing an elastic force F2.

[0041] exist Figure 5In another embodiment shown, the key cap 20 further includes: an annular side wall 24. The annular side wall 24 is arranged on the outer periphery of the pressing plate 21, and forms a limiting groove 25 with the pressing plate 21 to cooperate with the base 10. The base 10 is inserted into the limiting groove 25 and is loosely matched with the annular side wall 24. By forming the limiting groove 25, during assembly, the base 10 is located in the limiting groove 25, and the outer wall of the base 10 is loosely matched with the inner wall of the limiting groove 25, thereby achieving guidance in the first direction and ensuring stability during the movement of the key.

[0042] exist Figure 6 In another disclosed embodiment, the base 10 has a first end and a second end in a first direction, the first end of the base 10 is an end facing the pressing plate 21, the second end of the base 10 is an end away from the pressing plate 21, and the second end of the base 10 is used to connect with the electronic device. By connecting the second end of the base 10 with the electronic device, on the one hand, when pressing, the direction of the downward force F1 is toward the electronic device, which can prevent the key structure from falling off, and on the other hand, the trigger direction of the magnetic component 30 can be moved along the surface of the electronic device, thereby avoiding occupying the space inside the electronic device.

[0043] like Figure 6 As shown, the first end of the base 10 has a mating surface 13, and the mating surface 13 is provided with a guide groove 14 and an avoidance groove 15 in sequence along the second direction, and the guide groove 14 is connected to the avoidance groove 15. Figure 7 As shown, the groove bottom surface of the guide groove 14 is respectively connected with the matching surface 13 and the groove bottom surface of the avoidance groove 15 to form the guide surface 11.

[0044] It should be noted that the two ends of the base 10 in the second direction are arc-shaped, so the end of the avoidance groove 15 in the second direction is also an arc-shaped wall 151, and the annular side wall 24 of the pressure plate 21 matches the outer peripheral wall of the base 10. At the same time, the fixing portion 22 on the pressure plate 21 is an arc-shaped structure matching the arc-shaped portion, and a positioning groove 28 is formed between the fixing portion 22 and the annular side wall 24. When the button cap 20 is buckled on the base 10, the fixing portion 22 enters the avoidance groove 15, and the fixed wall is located in the positioning groove 28, which is convenient for positioning during installation.

[0045] like Figure 8 In another embodiment shown, a first connecting portion 12 is provided on the outer wall of the base 10, and a second connecting portion 241 matching the first connecting portion 12 is provided on the annular side wall 24, and the base 10 and the annular side wall 24 are detachably and movably connected via the first connecting portion 12 and the second connecting portion 241.

[0046] In this embodiment, the first connection part 12 is a snap-fit ​​groove, the second connection part 241 is a buckle, the buckle is located in the snap-fit ​​groove, and the buckle is movable in the snap-fit ​​groove. However, this is not restrictive. In some other embodiments not shown in the figure, the first connection part 12 is a buckle, and the second connection part 241 is a snap-fit ​​groove. As long as it does not violate the inventive concept of the present invention, the above structure is within the protection scope of the present invention.

[0047] like Figure 6 As shown, an annular protrusion 16 for interference fit with the electronic device is provided on the outer peripheral wall of the second end of the base 10 to improve the reliability of connection with the electronic device.

[0048] like Figure 1 In the embodiment shown, the magnetic component 30 includes: a slider 31 and a magnet 32. The slider 31 has a first end face 311 and a second end face 312. The first end face 311 abuts against and slides with the pressure plate 21, and the second end face 312 abuts against and slides with the guide surface 11. The magnet 32 ​​is embedded in the slider 31 to trigger the magnetic field sensor 50. A connecting column 313 for fixing the elastic member 23 is provided at one end of the magnet 32 ​​facing the fixed portion 22. The slider 31 cooperates with the pressure plate 21 and the guide surface 11 through the first end face 311 and the second end face 312, respectively, so as to drive the magnet 32 ​​to move along the second direction, thereby triggering the magnetic field sensor 50.

[0049] It should be noted that, in this embodiment, the magnet 32 ​​is embedded in the slider 31, but this is not restrictive. Fig. 9 In another embodiment shown in FIG. 1 , a key structure is disclosed, and its structure is similar to Figure 1 The key structure in the embodiment shown is basically the same, except that Fig. 9 In the illustrated embodiment, the magnet 32 ​​is sleeved on the connecting column 313 of the slider 31, which facilitates the installation and replacement of the magnet 32. Without violating the inventive concept of the present invention, the above structures are within the protection scope of the present invention.

[0050] In order to improve the pressing feel, Fig.10 In another embodiment shown, a spring steel sheet 40 is disposed between the pressure plate 21 and the mating surface 13. At the same time, the spring steel sheet 40 can also assist the key cap 20 in rebounding to avoid failure of the key structure.

[0051] According to another aspect of the embodiment of the present invention, an electronic device is also disclosed. Fig.11 As shown, the electronic device includes: a housing 60, a magnetic field sensor 50 and the above-mentioned key structure, the key structure is arranged on the outer surface of the housing 60, and the magnetic field sensor 50 is arranged inside the housing 60 and corresponds to the position of the key structure.

[0052] It can be understood that the magnetic component 30 has a first position and a second position in the second direction. In the second direction, the magnetic field sensor 50 is located between the first position and the second position. The magnetic component 30 slides with the guide surface 11 to achieve movement in the first direction and the second direction at the same time, and can then switch between the first position and the second position by reciprocating movement to trigger the magnetic field sensor 50.

[0053] The electronic device of the embodiment of the present invention can convert the mechanical movement of the magnetic component 30 into an electrical signal inside the electronic device through the magnetic component 30 and the triggering magnetic field sensor 50 by setting a key structure and setting a magnetic component 30 inside the key cap 20. Since the magnetic field can penetrate the housing of the electronic device and trigger the magnetic field sensor 50 inside the electronic device, there is no need to provide a mounting hole or opening structure connecting the inside and outside of the housing on the housing of the electronic device, so that the housing of the electronic device can be fully enclosed, thereby effectively improving the waterproof performance of the electronic device. At the same time, since the key structure is a physical structure, the real tactile feedback of the physical key can be retained, and there is no need to add an additional vibration motor to simulate the physical feel, thereby greatly reducing the cost.

[0054] Moreover, from Fig.11 It can be seen from FIG. 1 that although the downward force is in the direction perpendicular to the surface of the shell 60 (i.e. Fig.11 However, the magnetic component 30 is parallel to the surface direction of the shell 60 (i.e. Fig.11 By changing the moving direction of the magnetic component 30 to trigger the magnetic field sensor 50, the key structure is prevented from occupying too much space inside the electronic device, thereby reducing the restriction of the key structure to the key structure by the internal space of the electronic device and improving the application range of the key structure.

[0055] It should be noted that since the magnetic field sensor 50 is a device that can convert various magnetic fields and their changes into electrical signal outputs, that is, the magnetic field sensor 50 is used to detect changes in the magnetic field. Therefore, although in the present embodiment, the magnetic field sensor 50 is set between the first position and the second position in the second direction, this is not restrictive. In some other embodiments not shown in the figure, the magnetic field sensor 50 may not be set between the first position and the second position, but may be set near the first position or near the second position. As long as the magnetic component 30 can be moved in the second direction so that the magnetic field sensor 50 can detect the position where the magnetic field of the magnetic component 30 changes, it is feasible and therefore, it is within the scope of protection of the present invention.

[0056] The terms used herein are only used to describe specific embodiments and are not intended to limit the present disclosure. As used herein, the singular forms "a", "an" and "the" are also intended to include plural forms unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and / or "made of" are used in this specification, it specifies the presence of features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof.

[0057] In the absence of conflict, the various embodiments of the present disclosure and the various features in the embodiments may be combined with each other. The embodiments herein may be described with reference to plan views and / or cross-sectional views with the aid of ideal schematic diagrams of the present disclosure. Therefore, the example illustrations may be modified according to manufacturing techniques and / or tolerances. Therefore, the embodiments are not limited to the embodiments shown in the drawings, but include modifications of configurations formed based on manufacturing processes. Therefore, the areas illustrated in the drawings have schematic properties, and the shapes of the areas shown in the drawings illustrate the specific shapes of the areas of the elements, but are not intended to be restrictive.

[0058] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined as such herein.

[0059] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.

Claims

1. A key structure, characterized in that: include: A base (10) having a guide surface (11); A key cap (20) is buckled with the base (10), and the key cap (20) is movable along a first direction; A magnetic component (30) abuts against the key cap (20), and the key cap (20) and the magnetic component (30) move synchronously in the first direction, and the magnetic component (30) is movable relative to the key cap (20) in a second direction intersecting the first direction; The magnetic component (30) is slidably matched with the guide surface (11), and the setting direction of the guide surface (11) intersects with the first direction and the second direction at the same time, so that the magnetic component (30) moves along the first direction and the second direction at the same time, and the magnetic component (30) is used to trigger the magnetic field sensor (50) by moving in the second direction.

2. The key structure according to claim 1, characterized in that: The key cap (20) comprises: A pressing plate (21) is arranged perpendicular to the first direction, and the magnetic component (30) abuts against a side of the pressing plate (21) facing the base (10); A fixing portion (22) fixedly connected to the pressing plate (21), the fixing portion (22) and the magnetic component (30) being arranged at intervals along the second direction; An elastic member (23) is connected between the fixing portion (22) and the magnetic member (30).

3. The key structure according to claim 2, characterized in that: The key structure has a trigger state and a pop-up state. In the trigger state, the pressure plate (21) moves towards the base (10) under the action of a force, while driving the magnetic component (30) to slide with the guide surface (11), so that the magnetic component (30) moves along with the pressure plate (21) in the first direction and approaches the fixed portion (22) in the second direction, so as to trigger the magnetic field sensor (50), and at the same time the elastic member (23) is elastically deformed; In the pop-up state, under the action of the elastic member (23), the magnetic component (30) and the guide surface (11) are slidably matched, so that the magnetic component (30) moves away from the fixed portion (22) in the second direction, and at the same time, the magnetic component (30) drives the pressure plate (21) away from the base (10) in the first direction.

4. The key structure according to claim 2, characterized in that: An angle α is formed between the pressing plate (21) and the guide surface (11), and the value range of the angle α is 0°<α<90°.

5. The key structure according to claim 2, characterized in that: The button cap (20) further comprises: An annular side wall (24) is arranged on the outer periphery of the pressing plate (21) and forms a limiting groove (25) with the pressing plate (21) that matches the base (10). The base (10) is inserted into the limiting groove (25) and is loosely matched with the annular side wall (24).

6. The key structure according to claim 5, characterized in that: A first connecting portion (12) is provided on the outer side wall of the base (10), and a second connecting portion (241) matching the first connecting portion (12) is provided on the annular side wall (24); the base (10) and the annular side wall (24) are detachably and movably connected via the first connecting portion (12) and the second connecting portion (241).

7. The key structure according to claim 6, characterized in that: The first connection portion (12) is a buckle or a buckle slot, the second connection portion (241) is a buckle slot or a buckle, the buckle is located in the buckle slot, and the buckle is movable in the buckle slot.

8. The key structure according to claim 2, characterized in that: In the first direction, the base (10) has a first end facing the pressure plate (21), the first end of the base (10) has a matching surface (13), a guide groove (14) and an avoidance groove (15) are sequentially arranged on the matching surface (13) along the second direction, and the guide groove (14) is connected to the avoidance groove (15); The groove bottom surface of the guide groove (14) is respectively connected to the matching surface (13) and the groove bottom surface of the avoidance groove (15) to form the guide surface (11).

9. The key structure according to claim 2, characterized in that: The magnetic component (30) comprises: A slider (31) having a first end surface (311) and a second end surface (312), wherein the first end surface (311) abuts against the pressure plate (21), and the second end surface (312) abuts against the guide surface (11); A magnet (32) is arranged on the slider (31) and is used to trigger the magnetic field sensor (50).

10. An electronic device, characterized in that: include: A shell (60), a magnetic field sensor (50) and a key structure as described in any one of claims 1 to 9, wherein the key structure is arranged on the outer surface of the shell (60), and the magnetic field sensor (50) is arranged inside the shell (60) and corresponds to the position of the key structure.