What is Keys.ZENKAKU_HANKAKU in webdriver?



  • As i came across this code,

     driver.findElement(By.name("xxx")).sendKeys(
                    Keys.ZENKAKU_HANKAKU);
    

    so wanted to know why and when to use this kind of key.



  • This is a Japanese modifier key which will change between Hankaku (half-width) and Zenkaku (full-width) characters. To try and visualise this:

    Hankaku - 12345

    Zenkaku - 1 2 3 4 5

    As to which key it is bound to on the keyboard, F9 and F10 are common bindings. F10 will change from Zenkaku to Hankaku, and F9 from Hankaku to Zenkaku.

    Source - Wikipedia



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2