Git Product home page Git Product logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
I need help ASAP since a long time i am trying, but not able to find the 
workaround.

Thanks

Original comment by [email protected] on 15 Apr 2013 at 8:21

from jintellitype.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
I don't believe this is possible as both are treated like the same virtual key 
code there is no way to distinguish NUMPAD_ENTER from the regular ENTER key.

Using ENTER as a hotkey was not really what Microsoft had intended the Hotkey 
API for.  It was meant for obscure combinations like CTRL+SHIFT+G etc.

Original comment by mellowaredev on 15 Apr 2013 at 10:37

  • Changed state: WontFix

from jintellitype.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
Duplicate of this exact issue...

https://code.google.com/p/jintellitype/issues/detail?id=9



Original comment by mellowaredev on 15 Apr 2013 at 10:38

from jintellitype.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
Thanks for you reply,

Can you please suggest any solution for this issue apart from JIntellitype.

Original comment by [email protected] on 15 Apr 2013 at 11:18

from jintellitype.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
I don't think there is one other than maybe writing your own custom MFC code 
against the WinAPI but even then I still don't think you can tell the two enter 
keys apart.

So what I am saying is I don't think you can accomplish what you are trying to 
accomplish.

Original comment by mellowaredev on 15 Apr 2013 at 11:30

from jintellitype.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
[deleted comment]

from jintellitype.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
Hi Mellowaredev,

There is function public void registerHotKey(int identifier,int modifier,int 
keycode)
With the following Parameters:
identifier - a unique identifier for this key combination
modifier - MOD_SHIFT, MOD_ALT, MOD_CONTROL, MOD_WIN from JIntellitypeConstants, 
or 0 if no modifier needed
keycode - the key to respond to in Ascii integer, 65 for A

If you write another function where you just replace the keyCode with key's 
unicode then I think user will be able to differentiate between Main Enter key 
and Numpad Enter key

regards,
Rajeev

Original comment by [email protected] on 18 Apr 2013 at 10:01

from jintellitype.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
I don't think you are listening to me.  What I am telling you it is not 
possible to do what you want to do.

That is not how the WINAPI works.  That is just the java side it then must get 
translated into the Windows API call for RegisterHotkey which does not accept 
Unicode it expects a Virtual Key Code.

Microsoft Documentation:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms646309(v=vs.85).aspx

Here is the list of virtual key codes and there is only one VK_RETURN which is 
the same for the NUMPAD Enter and regular ENTER.

http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx

Original comment by mellowaredev on 18 Apr 2013 at 10:30

from jintellitype.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
Thanks a lot for your reply.

Original comment by [email protected] on 18 Apr 2013 at 11:15

from jintellitype.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.