Réparation raccourcis cassés

This commit is contained in:
NonoL3Robot
2022-03-08 14:58:08 +01:00
parent 2b719790e3
commit 6e424ccf0e
5 changed files with 6 additions and 9 deletions
BIN
View File
Binary file not shown.
@@ -29,8 +29,6 @@ public class PagePrecedente extends MenuItem {
*/ */
public PagePrecedente(IhmPdf parent) { public PagePrecedente(IhmPdf parent) {
super(parent, "Page précédente"); super(parent, "Page précédente");
// setRaccourcis(KeyEvent.VK_L, KeyEvent.CTRL_DOWN_MASK);
} }
@Override @Override
@@ -29,8 +29,6 @@ public class PageSuivante extends MenuItem {
*/ */
public PageSuivante(IhmPdf parent) { public PageSuivante(IhmPdf parent) {
super(parent, "Page suivante"); super(parent, "Page suivante");
// setRaccourcis(KeyEvent.VK_M, KeyEvent.CTRL_DOWN_MASK);
} }
@Override @Override
@@ -45,8 +45,8 @@ public class RaccourcisClavier extends JFrame {
"Fermer", "Fermer",
"Quitter", "Quitter",
"Mode Plein Ecran", "Mode Plein Ecran",
"Page Pdédente", "Page pcédente",
"Page Suivante", "Page suivante",
"Zoom 50%", "Zoom 50%",
"Zoom 100%", "Zoom 100%",
"Zoom 150%", "Zoom 150%",
@@ -63,7 +63,7 @@ public class RaccourcisClavier extends JFrame {
KeyStroke.getKeyStroke(KeyEvent.VK_F, KeyEvent.CTRL_DOWN_MASK), // Fermer KeyStroke.getKeyStroke(KeyEvent.VK_F, KeyEvent.CTRL_DOWN_MASK), // Fermer
KeyStroke.getKeyStroke(KeyEvent.VK_Q, KeyEvent.CTRL_DOWN_MASK), // Quitter KeyStroke.getKeyStroke(KeyEvent.VK_Q, KeyEvent.CTRL_DOWN_MASK), // Quitter
KeyStroke.getKeyStroke(KeyEvent.VK_F11, KeyEvent.CTRL_DOWN_MASK), // Mode Plein Ecran KeyStroke.getKeyStroke(KeyEvent.VK_F11, KeyEvent.CTRL_DOWN_MASK), // Mode Plein Ecran
KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, KeyEvent.CTRL_DOWN_MASK), // Page Prédédente KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, KeyEvent.CTRL_DOWN_MASK), // Page Précédente
KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, KeyEvent.CTRL_DOWN_MASK), // Page Suivante KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, KeyEvent.CTRL_DOWN_MASK), // Page Suivante
KeyStroke.getKeyStroke(KeyEvent.VK_MINUS, KeyEvent.CTRL_DOWN_MASK), // Zoom 50% KeyStroke.getKeyStroke(KeyEvent.VK_MINUS, KeyEvent.CTRL_DOWN_MASK), // Zoom 50%
KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD0, KeyEvent.CTRL_DOWN_MASK), // Zoom 100% KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD0, KeyEvent.CTRL_DOWN_MASK), // Zoom 100%
@@ -94,8 +94,8 @@ public class RaccourcisClavier extends JFrame {
panel.add(raccourcisElement); panel.add(raccourcisElement);
} }
JButton reset = new JButton("Reset"); // JButton reset = new JButton("Reset");
panel.add(reset, 1, raccourcis.size()); // panel.add(reset, 1, raccourcis.size());
add(panel); add(panel);
@@ -20,6 +20,7 @@ public class RaccourcisElement extends JPanel {
/* Interface */ /* Interface */
JLabel nomElement = new JLabel(nom); JLabel nomElement = new JLabel(nom);
System.out.println(raccourcis);
btnRaccourcis = new JButton(modifierToString(raccourcis.getModifiers()) + " + " + raccourcis.toString().split(" ")[2]); btnRaccourcis = new JButton(modifierToString(raccourcis.getModifiers()) + " + " + raccourcis.toString().split(" ")[2]);
add(nomElement); add(nomElement);
add(btnRaccourcis); add(btnRaccourcis);