0% found this document useful (0 votes)
40 views86 pages

Configuring A Keyboard Shortcut To Toggle A Boolean Value in

Uploaded by

Skelta Test
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views86 pages

Configuring A Keyboard Shortcut To Toggle A Boolean Value in

Uploaded by

Skelta Test
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

See if we talk about the lab related to our keyboard key

1
So defining an object keyboard key

2
So first of the first thing that in fact if you remember what we discussed earlier is you can define a command on object level

or on page level or on a system level

3
Right So this time we are going to try it for object table

4
So you will define an object keyboard key

5
That you can go to this activity called setup activity

6
In setup activity you see this keyboard keys option is given

7
There you can make entry for your key

8
For example the key name I am just giving is Starbell

9
What key code it represents

10
So you see there is a bunch of key nodes given

11
So you can just select these any of the command given here

12
Right So like I want to use key F4

13
So for that I would be scrolling and checking where key F4 is given

14
Like you can see here these commands are mentioned

15
So key F4 with shift or normally controlled or normal F4

16
So I say F4 is good enough

17
Any comment you want to enter you can enter

18
So that it is more readable

19
Like for example I am just entering F4 key

20
So that's my key I have added

21
I can click on save

22
So on object level I want to define it

23
So I can simply go to my graphic page and try to check how this is going to impact

24
If I go to my graphic builder there I have my graphic page

25
What I would be doing is I would be just making changes to it

26
So like if you see I have this button there

27
If I have to add a keyboard command how I can do it on this button

28
I double click

29
It opens the properties of button properties

30
The thing that I have to do is to define the command

31
Normally if you see the visibility or 3D effect different tabs are there

32
So you can choose any of them

33
However my focus is going to be on input where this command is being used

34
Toggle test boolean

35
However my intention is to use keyboard commands

36
I just go there and use my sequence that I have defined

37
What is going to be the sequence You remember I have added a sequence there with the name toggle

38
So it should be existing here

39
40
It's not there

41
You can compile that

42
It should be available

43
Sometimes if you don't save it you find it difficult there

44
So what I can do is I would be just simply using this toggle

45
So toggle and then I select this toggle command

46
So I am going to call this function toggle

47
And what I'm going to toggle the value of test underscore boolean

48
That's the variable tag that I have

49
It's of boolean type

50
So it can switch the value on or off

51
So toggle will change it from true to false and false to true

52
And what this toggle will do it actually would be activated when somebody press F4 key on this object

53
What is this object Button

54
So even I can give it some helpful text and say like press F4 key to toggle

55
toggle Right

56
I can just say press F4 key to toggle so that end user will understand

57
OK

58
If you press F4 key it can show you the toggle behavior

59
OK

60
Let me click on this

61
OK

62
And save

63
Adjust the size accordingly what you have

64
And after saving this I can directly run it from here

65
Or even you can run it from your PlantScale Studio

66
Right

67
So like here you have run

68
If I run that it should run it

69
70
When I run from my page if I call the test page you see here it is

71
Right

72
If I press this button it shows on or off

73
If I have to show you the keyboard let me open this virtual keyboard here so that it gives you easy access

74
So like here I press

75
This button is there

76
Right

77
I press F4 key

78
See it has gone off

79
I press again

80
It's on

81
So this way my keystroke is working

82
So that's on a particular object

83
This keyboard command is working

84
Right

85
So that's what I wanted to show you in this lab

86

You might also like