Riccardo wrote:
Hello,
inside textfields (GNUMail message editing and Ink are an example) I
think I used to be able to select text using shift + arrows
movment. I
notice today that it is not possible. Is it a bug? Or am I just
used to
do it on other platforms?
Thank you for spotting this. The reason for this was really hard to
track down. It turns out to be the following line in NSInputManager:
BOOL isFunctionKey = [theEvent modifierFlags] & NSFunctionKeyMask;
This used to work while the value for NSFunctionKeyMask was in the
first
byte, but now it is 1<<24 and the resulting BOOL was NO.
This should be a warning to all of us to program more careful and
always
use explicit comparisons for integer masks. This code does the trick:
BOOL isFunctionKey = ([theEvent modifierFlags] & NSFunctionKeyMask)
== NSFunctionKeyMask;