Comments (10)
Fixed in 1.3.7
Original comment by mellowaredev
on 17 Aug 2011 at 11:01
- Changed state: Fixed
from jintellitype.
Hi,
now in 1.3.7 does not work ALT_MASK | CTRL_MASK - method returns 0, but should
probably return 3.
I propose this to group xxx_MASK and xxx_DOWN_MASK:
if ((swingKeystrokeModifier & InputEvent.SHIFT_MASK) == InputEvent.SHIFT_MASK
|| (swingKeystrokeModifier & InputEvent.SHIFT_DOWN_MASK) == InputEvent.SHIFT_DOWN_MASK) {
mask |= JIntellitypeConstants.MOD_SHIFT;
}
if ((swingKeystrokeModifier & InputEvent.ALT_MASK) == InputEvent.ALT_MASK
|| (swingKeystrokeModifier & InputEvent.ALT_DOWN_MASK) == InputEvent.ALT_DOWN_MASK) {
mask |= JIntellitypeConstants.MOD_ALT;
}
if ((swingKeystrokeModifier & InputEvent.CTRL_MASK) == InputEvent.CTRL_MASK
|| (swingKeystrokeModifier & InputEvent.CTRL_DOWN_MASK) == InputEvent.CTRL_DOWN_MASK) {
mask |= JIntellitypeConstants.MOD_CONTROL;
}
Original comment by [email protected]
on 26 Jan 2012 at 9:27
from jintellitype.
Have you tested this fix in all scenarios?
Original comment by mellowaredev
on 26 Jan 2012 at 9:30
from jintellitype.
Original comment by mellowaredev
on 26 Jan 2012 at 9:31
- Changed state: Accepted
from jintellitype.
Yes, it will handle all combinations of SHIFT, ALT and CTRL keys and treat
xxxMASK and xxxDOWN_MASK as same single JIntellitypeConstants modifier. I hope
it was the first intention.
Plus I would consider including InputEvent.META_MASK (equivalent to
JIntellitypeConstants.MOD_WIN?):
if ((swingKeystrokeModifier & InputEvent.META_MASK) == InputEvent.META_MASK
|| (swingKeystrokeModifier & InputEvent.META_DOWN_MASK) == InputEvent.META_DOWN_MASK) {
mask |= JIntellitypeConstants.MOD_WIN;
}
Original comment by [email protected]
on 27 Jan 2012 at 7:08
from jintellitype.
Hi, one more thing. I suppose swingToIntelliType(int swingKeystrokeModifier)
should not be called from registerHotKey(int identifier, int modifier, int
keycode) as input modifiers to that method are expected already in jintellitype
format.
Regards
Original comment by [email protected]
on 27 Jan 2012 at 7:23
from jintellitype.
Can you look at this version I just checked into the /trunk to make sure it
looks OK?
http://code.google.com/p/jintellitype/source/browse/trunk/src/main/java/com/mell
oware/jintellitype/JIntellitype.java?spec=svn27&r=27
Original comment by mellowaredev
on 27 Jan 2012 at 5:55
from jintellitype.
Yes, it's working now.
Original comment by [email protected]
on 29 Jan 2012 at 10:13
from jintellitype.
Awesome thanks for the patch. I will be a new version and put it on the
downloads page.
Original comment by mellowaredev
on 29 Jan 2012 at 1:30
from jintellitype.
Fixed and 1.3.8 uploaded.
Original comment by mellowaredev
on 30 Jan 2012 at 1:02
- Changed state: Fixed
from jintellitype.
Related Issues (20)
- The registration button does not support - , ; Such symbols seem to support only A-Z uppercase characters? HOT 2
- Can't load library dll from inside of the Spring Boot JAR application HOT 1
- Readme file should be written in Markdown HOT 2
- could i use this to listen to the mouse wheel pressed HOT 1
- Java 11 DLL is crashing... HOT 46
- 一些window10的问题?/Some window10 problems? HOT 1
- Load DLL's from inside JAR HOT 4
- JavaFX HOT 2
- 如何在两个不同应用中,同时注册相同的热键 HOT 1
- could not load DLL HOT 5
- NullPointerException in "JIntellitypeDemo.java" HOT 1
- JIntellitype64.dll can not be loaded correctly since 8u261 HOT 54
- The registration button is invalid in full-screen mode HOT 10
- Hotkey Distinguish KeyUp from KeyDown HOT 3
- Can it listen for the mouse? HOT 2
- Can't register slash and back slash key HOT 3
- Error thrown as a result of missing library HOT 3
- JIntellitype64.dll can't be found inside jar generated by Spring Boot HOT 6
- i can't understand intellitype and What can be achieved through it HOT 2
- when JIntellitypeDemo running and registerHotKey , some key does not work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jintellitype.