Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2004-08-05 14:54:00 +0400
committerTon Roosendaal <ton@blender.org>2004-08-05 14:54:00 +0400
commit75e89167f4fee34111215f8153a8141bf8f5a968 (patch)
tree7aa880d105eafb9a60f86942d1f76e5c63f4af77
parent0219276da716f79df2480b584600026f533ad8e6 (diff)
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... :)
-rw-r--r--source/blender/src/space.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/src/space.c b/source/blender/src/space.c
index 3d8350e23e8..170d979ac72 100644
--- a/source/blender/src/space.c
+++ b/source/blender/src/space.c
@@ -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();