Skip to content

Commit

Permalink
Fixed typo listKeyboArds in GlobalKeyboardHook
Browse files Browse the repository at this point in the history
  • Loading branch information
kristian committed Jun 11, 2017
1 parent 4a4c5df commit a0513d1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class GlobalKeyboardExample {
GlobalKeyboardHook keyboardHook = new GlobalKeyboardHook(true); // use false here to switch to hook instead of raw input

System.out.println("Global keyboard hook successfully started, press [escape] key to shutdown. Connected keyboards:");
for(Entry<Long,String> keyboard:GlobalKeyboardHook.listKeybords().entrySet())
for(Entry<Long,String> keyboard:GlobalKeyboardHook.listKeyboards().entrySet())
System.out.format("%d: %s\n", keyboard.getKey(), keyboard.getValue());

keyboardHook.addKeyListener(new GlobalKeyAdapter() {
Expand Down Expand Up @@ -99,7 +99,7 @@ You can include `system-hook` from this GitHub repository by adding this depende
<dependency>
<groupId>lc.kra.system</groupId>
<artifactId>system-hook</artifactId>
<version>3.0</version>
<version>3.1</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 3.0.{build}
version: 3.1.{build}

branches:
only:
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>lc.kra.system</groupId>
<artifactId>system-hook</artifactId>
<version>3.0</version>
<version>3.1</version>
<description>Global Keyboard / Mouse Hook for Java applications.</description>
<url>https://github.com/kristian/system-hook</url>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public void shutdownHook() {
*
* @return A map of device handles and display names
*/
public static Map<Long,String> listKeybords() throws UnsatisfiedLinkError {
public static Map<Long,String> listKeyboards() throws UnsatisfiedLinkError {
LibraryLoader.loadLibrary(); // load the library, in case it's not already loaded
return NativeKeyboardHook.listDevices();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static void main(String[] args) {
GlobalKeyboardHook keyboardHook = new GlobalKeyboardHook(true); // use false here to switch to hook instead of raw input

System.out.println("Global keyboard hook successfully started, press [escape] key to shutdown. Connected keyboards:");
for(Entry<Long,String> keyboard:GlobalKeyboardHook.listKeybords().entrySet())
for(Entry<Long,String> keyboard:GlobalKeyboardHook.listKeyboards().entrySet())
System.out.format("%d: %s\n", keyboard.getKey(), keyboard.getValue());

keyboardHook.addKeyListener(new GlobalKeyAdapter() {
Expand Down

0 comments on commit a0513d1

Please sign in to comment.