Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sinister Zeta Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sinister Zeta
Sinister Zeta Project
Commits
1039de65
Commit
1039de65
authored
4 years ago
by
Branden
Browse files
Options
Downloads
Patches
Plain Diff
Removed test cases. they broke with the change of Modifier.
parent
83e52e34
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/model/MediaKeys.java
+4
-14
4 additions, 14 deletions
src/model/MediaKeys.java
with
4 additions
and
14 deletions
src/model/MediaKeys.java
+
4
−
14
View file @
1039de65
...
...
@@ -20,7 +20,7 @@ public class MediaKeys extends Hotkey implements InputEmulator{
* @param id id of hotkey
* @param modifier modifer for keycode
*/
public
MediaKeys
(
int
keyCode
,
int
id
,
int
modifier
){
public
MediaKeys
(
int
keyCode
,
int
id
,
Modifier
modifier
){
super
(
keyCode
,
id
,
modifier
);
}
...
...
@@ -41,21 +41,11 @@ public class MediaKeys extends Hotkey implements InputEmulator{
else
if
(
keyCode
==
prev
){
System
.
out
.
println
(
"sending prev keycode"
+
keyCode
);
}
else
{
System
.
out
.
println
(
"Keycode send isnt a media key"
);
}
}
public
static
void
main
(
String
[]
args
){
System
.
out
.
println
(
"TestCases"
);
// with not valid keycode
MediaKeys
test0
=
new
MediaKeys
(
0
,
0
,
0
);
test0
.
sendKey
(
test0
.
getKeyCode
(),
false
);
// with valid Keycode
MediaKeys
test1
=
new
MediaKeys
(
178
,
0
,
0
);
test1
.
sendKey
(
test1
.
getKeyCode
(),
false
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment