@@ -5,6 +5,7 @@ export declare class NgTest {
5
5
* Create a new simulation wrapper for widget
6
6
*/
7
7
constructor ( widget : NodeWidget ) : NgTest ;
8
+
8
9
/**
9
10
* Simulates clicking of key with an optional modifier
10
11
*
@@ -13,6 +14,7 @@ export declare class NgTest {
13
14
* @example {@link https://github.com/ng-qt/ng-test/blob/master/src/ng-test.spec.ts#25 }
14
15
*/
15
16
keyClick ( key : string , modifier ?: KeyboardModifier ) : void ;
17
+
16
18
/**
17
19
* Simulates clicking of key with an optional modifier
18
20
*
@@ -21,6 +23,7 @@ export declare class NgTest {
21
23
* @example {@link https://github.com/ng-qt/ng-test/blob/master/src/ng-test.spec.ts#34 }
22
24
*/
23
25
keyClick ( key : Key , modifier ?: KeyboardModifier ) : void ;
26
+
24
27
/**
25
28
* Simulates pressing a key with an optional modifier
26
29
*
@@ -29,6 +32,7 @@ export declare class NgTest {
29
32
* @example {@link https://github.com/ng-qt/ng-test/blob/master/src/ng-test.spec.ts#45 }
30
33
*/
31
34
keyPress ( key : string , modifier ?: KeyboardModifier ) : void ;
35
+
32
36
/**
33
37
* Simulates pressing a key with an optional modifier
34
38
*
@@ -37,4 +41,12 @@ export declare class NgTest {
37
41
* @example {@link https://github.com/ng-qt/ng-test/blob/master/src/ng-test.spec.ts#54 }
38
42
*/
39
43
keyPress ( key : Key , modifier ?: KeyboardModifier ) : void ;
44
+
45
+ /**
46
+ * Simulates clicking a sequence of keys on a widget.
47
+ * Optionally, a keyboard modifier can be specified as well as a delay (in milliseconds) of the test before each key click.
48
+ *
49
+ * @see {@https://doc.qt.io/qt-5/qtest.html#keyClicks }
50
+ */
51
+ keyClicks ( sequence : string , modifier ?: KeyboardModifier , delay ?: number ) : void ;
40
52
}
0 commit comments