Little showstopper; the fix for enabling typing (3d) text in 3d window

with 'emulate numpad' disabled plus/minus hotkey in imagewindow for zoom.

Added it also for oops. More problems with it for other spaces makes it
important te review for next release. But this is for people who use
laptops or minimalistic keyboards... :)
This commit is contained in:
Ton Roosendaal
2004-08-05 10:54:00 +00:00
parent 0219276da7
commit 75e89167f4

View File

@@ -3604,6 +3604,12 @@ void winqreadimagespace(ScrArea *sa, void *spacedata, BWinEvent *evt)
}
}
/* least intrusive nonumpad hack, only for plus/minus */
if (U.flag & USER_NONUMPAD) {
event= convert_for_nonumpad(event);
}
/* Events handled always (whether the draw tool is active or not) */
switch (event) {
case UI_BUT_EVENT:
@@ -3680,6 +3686,10 @@ void winqreadoopsspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
}
}
if (U.flag & USER_NONUMPAD) {
event= convert_for_nonumpad(event);
}
switch(event) {
case LEFTMOUSE:
gesture();