From a387e84423925c2d9ad5270f6ce2d2d4a0e98c05 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Tue, 26 Jan 2010 02:34:07 +0000 Subject: [PATCH] Also accept B_MIME_DATA dropped messages. Allows the Terminal to be used with Keymap as an on-screen keyboard by dropping the sample clipboard content and the actual keys onto it (including control ones). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35293 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/terminal/TermView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/terminal/TermView.cpp b/src/apps/terminal/TermView.cpp index 8e738bab22..13cb2530c0 100644 --- a/src/apps/terminal/TermView.cpp +++ b/src/apps/terminal/TermView.cpp @@ -1438,7 +1438,8 @@ TermView::MessageReceived(BMessage *msg) const char *ctrl_l = "\x0c"; // first check for any dropped message - if (msg->WasDropped() && msg->what == B_SIMPLE_DATA) { + if (msg->WasDropped() && (msg->what == B_SIMPLE_DATA + || msg->what == B_MIME_DATA)) { char *text; int32 numBytes; //rgb_color *color;