• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

KeyListener with Control key

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm trying to create a text input field with keyboard shortcuts to write non-standard characters: 'a' adds an a, 'ctrl+a' adds an a with an accent, 'alt+a' and 'ctrl+alt+a' add different accents etc. This works fine for the alt modifier but I get no response from the control key, or I press 'ctrl + a' and it selects the whole text. I'm guessing that the control key gets monopolised by some other component but I don't know how to disable it. I'm sure I've seen a post title on this very topic either here or elsewhere but I can't find it now. Thanks for any help!
Jack

My code:
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let's move this to the Swing/AWT forum.
 
reply
    Bookmark Topic Watch Topic
  • New Topic