Date: Tue, 30 Sep 2014 02:04:38 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r369567 - in head/graphics/osg: . files Message-ID: <201409300204.s8U24c76070548@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Tue Sep 30 02:04:37 2014 New Revision: 369567 URL: http://svnweb.freebsd.org/changeset/ports/369567 QAT: https://qat.redports.org/buildarchive/r369567/ Log: - Fix shift key getting stuck on some cases PR: 193630 Submitted by: mike.d.ft402@gmail.com Added: head/graphics/osg/files/patch-shift-key-fix (contents, props changed) Modified: head/graphics/osg/Makefile Modified: head/graphics/osg/Makefile ============================================================================== --- head/graphics/osg/Makefile Tue Sep 30 00:52:52 2014 (r369566) +++ head/graphics/osg/Makefile Tue Sep 30 02:04:37 2014 (r369567) @@ -3,7 +3,7 @@ PORTNAME= osg PORTVERSION= 3.2.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= graphics MASTER_SITES= http://trac.openscenegraph.org/downloads/developer_releases/ \ http://mirror.amdmi3.ru/distfiles/ Added: head/graphics/osg/files/patch-shift-key-fix ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/osg/files/patch-shift-key-fix Tue Sep 30 02:04:37 2014 (r369567) @@ -0,0 +1,23 @@ +# Shift key not released if group switch is something other than Control-Shift: +# https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1218650.html + +--- src/osgGA/EventQueue.cpp.orig ++++ src/osgGA/EventQueue.cpp +@@ -337,7 +337,7 @@ void EventQueue::mouseButtonRelease(floa + + void EventQueue::keyPress(int key, double time, int unmodifiedKey) + { +- switch(key) ++ switch(unmodifiedKey) + { + case(GUIEventAdapter::KEY_Shift_L): _accumulateEventState->setModKeyMask(GUIEventAdapter::MODKEY_LEFT_SHIFT | _accumulateEventState->getModKeyMask()); break; + case(GUIEventAdapter::KEY_Shift_R): _accumulateEventState->setModKeyMask(GUIEventAdapter::MODKEY_RIGHT_SHIFT | _accumulateEventState->getModKeyMask()); break; +@@ -381,7 +381,7 @@ void EventQueue::keyPress(int key, doubl + + void EventQueue::keyRelease(int key, double time, int unmodifiedKey) + { +- switch(key) ++ switch(unmodifiedKey) + { + case(GUIEventAdapter::KEY_Shift_L): _accumulateEventState->setModKeyMask(~GUIEventAdapter::MODKEY_LEFT_SHIFT & _accumulateEventState->getModKeyMask()); break; + case(GUIEventAdapter::KEY_Shift_R): _accumulateEventState->setModKeyMask(~GUIEventAdapter::MODKEY_RIGHT_SHIFT & _accumulateEventState->getModKeyMask()); break;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409300204.s8U24c76070548>