Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

KeyEvent

Empfohlene Antworten

Servus

Ich habe folgendes Problem:

Ich habe einen LogonDialog bei dem ich über einen OK-Button einlogge.

nun will ich mich aber auch mit der Enter-Taste einloggen.

m_iButtonOk.registerKeyboardAction(this, "ok", KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),

JComponent.WHEN_IN_FOCUSED_WINDOW);

Jedoch passiert rein gar nichts.

wenn ich aber nicht VK_ENTER sondern irgendeine andere Taste VK_F1 o. ä. benutze funktionierts.

Gruß

Johnny

Hi,

hast du schon versucht, ob es funktioniert, wenn du den ASCII Code der Eingabetaste anstelle von KeyEvent.VK_XXX verwendest?

Ansonsten....hm....zur Methode .getKeyStroke(KeyEvent xxx,int xxx) hab ich auch nichts in der API gefunden (KeyStroke (Java 2 Platform SE v1.4.2)) . Evtl. solltest du es mal mit .getKeyStrokeForEvent(KeyEvent xxx) versuchen, falls es mit dem ASCII Code auch nicht klappt.

gruß

Raphael

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.