mirror of
https://github.com/LucasVbr/LecteurPdfDoubleAffichage.git
synced 2026-12-05 18:30:49 +00:00
Edit interface Raccourcis claviers + refactor de code
This commit is contained in:
@@ -8,6 +8,7 @@ package lecteur_pdf.menuBar.menuItems;
|
||||
|
||||
import lecteur_pdf.IhmPdf;
|
||||
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.KeyEvent;
|
||||
|
||||
/**
|
||||
@@ -27,10 +28,11 @@ public class PleinEcran extends MenuItem {
|
||||
public PleinEcran(IhmPdf parent) {
|
||||
super(parent, "Mode Plein Ecran");
|
||||
|
||||
addActionListener(e -> {
|
||||
parent.pleinEcran();
|
||||
});
|
||||
// setRaccourcis(KeyEvent.VK_P, KeyEvent.CTRL_DOWN_MASK);
|
||||
}
|
||||
|
||||
setRaccourcis(KeyEvent.VK_P, KeyEvent.CTRL_DOWN_MASK);
|
||||
@Override
|
||||
protected void action(ActionEvent evt) {
|
||||
parent.pleinEcran();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user