Merge branch 'master' of http://git.neviyn.co.uk/git/neviyn/musicplayer
This commit is contained in:
commit
49c1dd6cb6
@ -295,10 +295,10 @@ public class PlayerGUI extends JPanel implements PlayerCallbackInterface {
|
||||
|
||||
private class GlobalKeyboardShortcuts implements NativeKeyListener {
|
||||
boolean modified = false;
|
||||
final int playPause = 192;
|
||||
final int stop = 222;
|
||||
final int previous = 219;
|
||||
final int next = 221;
|
||||
final char playPause = '\'';
|
||||
final char stop = '#';
|
||||
final char previous = '[';
|
||||
final char next = ']';
|
||||
|
||||
@Override
|
||||
public void nativeKeyPressed(NativeKeyEvent nativeKeyEvent) {
|
||||
@ -316,7 +316,7 @@ public class PlayerGUI extends JPanel implements PlayerCallbackInterface {
|
||||
public void nativeKeyTyped(NativeKeyEvent nativeKeyEvent) {
|
||||
if (modified) {
|
||||
try {
|
||||
switch (nativeKeyEvent.getRawCode()) {
|
||||
switch (nativeKeyEvent.getKeyChar()) {
|
||||
case playPause:
|
||||
if (player.isPlaying()) {
|
||||
player.pause();
|
||||
|
Loading…
Reference in New Issue
Block a user