Topic IPAMenu.kmn

We have two new locations for Keyman technical support:

The Tavultesoft Forums are now read only.


# IPAMenu.kmn   2016-02-13 09:11:10.390
br Julian Griffin OSL
Hi,

   Looking through the documentation I thought I would explore the IPAmenu example. Things went well and I started to transfer my keyboard under development to a menu system for complex characters. But I found that if I used the [Backspace] key to remove a menu, it also deleted the character to the left of the menu. Looking at the code, I found the line
:
+ [K_BKSP] > nul c delete menu

   Which I assume should absorb the [K_BKSP] key, which it does.

   But these lines are commented-out in the “ipamenu”.kmn version on you website:
http://help.keyman.com/developer/9.0/guides/develop/advanced-keyboard-development-example

   Is the website wrong or is it not needed to convert the [K_BKSP] to Null?

Regards
Julian Griffin
# RE: IPAMenu.kmn   2016-02-13 09:48:20.343
Marc Durdin
Tavultesoft Staff
Yes, I'm not sure why those lines are commented out in the example; we'll address that.

I also do not know why, without more information, why the backspace key would be deleting a character to the left of the menu: can you tell me which app you are seeing this happen with, and a bit more detail about the keyboard?
# RE: IPAMenu.kmn   2016-02-14 02:14:24.930
br Julian Griffin OSL
The effect is happening in Keyman Developer 9 ‘Test Keyboard’.

   I simplified my discovery of the commented-out code. But I had already been exploring IPAMenu.kmn in Samples and had edited it. So to get back to the original I copied the code from the Keyman webpage. This is when I found the problem. But only when I started testing longer strings with text to the left of a menu.

   So, if I have understood correctly, the [Backspace] was only deleting the character to the left because the key itself was being action. This is the reason for the “> nul” line.

   Sorry my first post was not clear; I was trying to keep it brief. Something I have a problem with, be brief that is.

God bless.
Julian Griffin
# RE: IPAMenu.kmn   2016-02-16 06:42:09.013
Marc Durdin
Tavultesoft Staff
I'm not able to reproduce this issue here; are you using the exact code from the tutorial (but with those commented out lines restored), and can you give me a sequence to type that shows the issue?
# RE: IPAMenu.kmn   2016-02-17 06:48:59.620
br Julian Griffin OSL
I'm still having trouble being brief, sorry.

   The effect only happens if the:
:
   + [K_BKSP] > nul c delete menu
   line is commented out. And this only happens when the code is copied from the website.

   If the code is:
:
   + [K_BKSP] > nul c delete menu
   there is no issue.

   There is no issue to be corrected. Rereading my posts, I think I was not very clear. Sorry

   I am forever having to relearn the wisdom that, more words do not necessarily mean greater clarity.

   There is a great book on the subject of brevity, call ‘Be Brief’. Well I say book, in reality it is a single sheet of paper with two words on it. The words being ‘Be Brief’.

God bless.
Julian Griffin
# RE: IPAMenu.kmn   2016-02-19 17:21:50.707
Marc Durdin
Tavultesoft Staff
No problems - glad you've got it sorted :)