Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Keys.OnPressed for TextInput not called for certain non-english languages (Korean/Japanese)

Keys.OnPressed for TextInput not called for certain non-english languages (Korean/Japanese)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 457 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ali-hirani
    wrote on last edited by
    #1
    TextInput {
    	id: myTextInput
    	text: ""
    
    	onTextChanged: {
        	    // Logic for after the text has been entered into myTextInput
       	}
    
       	Keys.onPressed: {
       	    // Logic that should happen as a key is pressed, before it's inserted into myTextInput
       	}
    }
    

    Entering characters in english works fine and the Keys.onPressed callback get's triggered, but changing my keyboard to 2-Set Korean or one of the Japanese keyboard configurations results in the Keys.onPressed method never being called. Instead the character is directly entered into myTextInput and onTextChanged is triggered.

    Please advise on why Keys.onPressed is ignored for certain language inputs.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! Please report the issue at https://bugreports.qt.io.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved