Tony CHEMIT pushed to branch develop-7.x at ultreiaio / ird-observe Commits: 5a3aa21f by Tony CHEMIT at 2018-08-03T23:37:04Z update pom - - - - - a68e62ae by Tony CHEMIT at 2018-08-06T06:31:17Z [LL][SERVER] Sur section Capture, le racourcis Nouveau (F4) ne fonctionne pas - Closes #1029 - Closes #1025 - - - - - 2 changed files: - client/src/main/java/fr/ird/observe/client/ui/content/ContentUIInitializer.java - pom.xml Changes: ===================================== client/src/main/java/fr/ird/observe/client/ui/content/ContentUIInitializer.java ===================================== @@ -432,6 +432,7 @@ public class ContentUIInitializer<E extends IdDto, UI extends ContentUI<E, UI>> if (log.isDebugEnabled()) { log.debug("init combobox for " + BeanFilterableComboBox.getBeanType()); } + BeanFilterableComboBox.getCombobox().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_F4, 0), "none"); Class referenceType = BeanFilterableComboBox.getBeanType(); BeanFilterableComboBox.setI18nLabelBuilder(ObserveI18nLabelsBuilder.createFromReferenceType(referenceType)); BeanFilterableComboBox.setI18nPrefix("observe.common."); @@ -646,6 +647,7 @@ public class ContentUIInitializer<E extends IdDto, UI extends ContentUI<E, UI>> } }); } + editor.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_F4, 0), "none"); } protected void init(JComponent editor, Set<String> notBlockingComponents) { @@ -734,6 +736,7 @@ public class ContentUIInitializer<E extends IdDto, UI extends ContentUI<E, UI>> labelsBuilder.put(e, label); } editor.setRenderer(new EnumEditorRenderer<>(labelsBuilder.build())); + editor.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_F4, 0), "none"); } private boolean isAutoSelectOnFocus(JComponent comp) { ===================================== pom.xml ===================================== @@ -27,7 +27,7 @@ <parent> <groupId>io.ultreia.maven</groupId> <artifactId>pom</artifactId> - <version>2018.49</version> + <version>2018.50</version> </parent> <groupId>fr.ird.observe</groupId> View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/compare/067ee40a5d1288bfcc94bb2e74c... -- View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/compare/067ee40a5d1288bfcc94bb2e74c... You're receiving this email because of your account on gitlab.com.
participants (1)
-
Tony CHEMIT