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
28eb872d
Commit
28eb872d
authored
4 years ago
by
NikolaBabic
Browse files
Options
Downloads
Patches
Plain Diff
Added Hotkey class
parent
76b4d252
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!32
Base system
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/model/Hotkey.java
+53
-0
53 additions, 0 deletions
src/model/Hotkey.java
with
53 additions
and
0 deletions
src/model/Hotkey.java
0 → 100644
+
53
−
0
View file @
28eb872d
package
model
;
import
java.io.Serializable
;
public
class
Hotkey
{
/**
* Virtual keycode of the hotkey.
*/
protected
final
int
keyCode
;
/**
* Unique ID of the hotkey.
*/
protected
final
int
id
;
/**
* Modifier for the hotkey.
*/
protected
final
Modifier
modifier
;
/**
* Constructs an immutable hotkey.
* @param keyCode The virtual keycode of the hotkey.
* @param id The unique ID of the hotkey.
* @param modifier The modifier of the hotkey.
*/
public
Hotkey
(
int
keyCode
,
int
id
,
Modifier
modifier
)
{
this
.
keyCode
=
keyCode
;
this
.
id
=
id
;
this
.
modifier
=
modifier
;
}
/**
* Gets the Hotkeys virtual keyCode.
*/
public
int
getKeyCode
()
{
return
keyCode
;
}
/**
* Gets the hotkey's unique ID.
*/
public
int
getID
()
{
return
id
;
}
/**
* Get's the hotkey's modifier.
*/
public
Modifier
getModifier
()
{
return
modifier
;
}
}
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