diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2015-04-07 15:08:30 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2015-04-07 15:13:20 +0300 |
commit | cc78664d50c6ae82d139552283ede467b0cf28cc (patch) | |
tree | 96575149c8b9fef5e8e8a3883d55f4e385deda74 /source/blender/editors/space_text/text_ops.c | |
parent | d60ff6c112b1c5d3819676109b0080a316850eb0 (diff) |
Revert Sticky Keys (and everything related to that)
Our current keymap doesn't give us enough room to make such changes in
the event system. To fix small issues caused by this, we would need to do
drastic changes in Blender's keymaps and internal handling. It was worth
a try, but it didn't work.
I can write down a more descriptive statement in a few days, but for now
I need a break of this stuff.
Diffstat (limited to 'source/blender/editors/space_text/text_ops.c')
-rw-r--r-- | source/blender/editors/space_text/text_ops.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index 9d517b20f01..ad8050a50e8 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -2163,11 +2163,6 @@ static int text_scroll_modal(bContext *C, wmOperator *op, const wmEvent *event) case LEFTMOUSE: case RIGHTMOUSE: case MIDDLEMOUSE: - /* don't exit on dummy events */ - if (event->val == KM_NOTHING) { - return OPERATOR_RUNNING_MODAL; - } - if (ELEM(tsc->zone, SCROLLHANDLE_MIN_OUTSIDE, SCROLLHANDLE_MAX_OUTSIDE)) { txt_screen_skip(st, ar, st->viewlines * (tsc->zone == SCROLLHANDLE_MIN_OUTSIDE ? 1 : -1)); @@ -2672,11 +2667,8 @@ static int text_set_selection_modal(bContext *C, wmOperator *op, const wmEvent * case LEFTMOUSE: case MIDDLEMOUSE: case RIGHTMOUSE: - if (event->val != KM_NOTHING) { - text_cursor_set_exit(C, op); - return OPERATOR_FINISHED; - } - break; + text_cursor_set_exit(C, op); + return OPERATOR_FINISHED; case TIMER: case MOUSEMOVE: text_cursor_set_apply(C, op, event); |