Closed Bug 62680 Opened 25 years ago Closed 25 years ago

[BeOS] keyboard input implemented, some fix on nsWindow

Categories

(Core :: XUL, defect, P3)

x86
BeOS
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: VYA04230, Assigned: ykoehler)

Details

Attachments

(1 file)

Currently, keyboard input is almost not working on BeOS, because of poor implementation. I implemented full keyboard input function on BeOS widget (nsWindow). And also, I fixed some bugs on BeOS widget code. I'll attach a patch. [implemented fuction] 1. Keyboard input [other fixed bugs] 1. Some dialogs does not appear : fix nsWindow::StandardWindowCreate() and nsWindow::Show() 2. Popup menus in HTML pages appears at wrong location : fix nsWindow::Move() 3. Multi-byte string was not allowed on the title bar : fix nsWindow::SetTitle() [affected files] widget/src/beos/nsWindow.cpp : implement keyboard input, fix some bugs widget/src/beos/nsWindow.h widget/src/beos/nsTextWidget.cpp : fix KeyDown()/KeyUp() implementation to meet nsWindow gfx/src/beos/nsRenderingContextBeOS.cpp : fix InvertRect() to show caret [notes] Char code and virtual key code are passed to XP event handling from nsWindow. In the current implementation in attached patch, char code is retrieved from 'bytes' of KeyDown(), which indicates input char code translated by BeOS in the form of UTF-8. And virtual key code is retrieved from 'key' member on the current BMessage, which indicates the position of the key which pressed or released. I think this is sufficient. [about i18n] I tested to input some texts in japanese and it was OK. Though, 'in-line translation' fuction is not implemented, currently. [focus issue] I implemented to handle focus but it seems to wrongly behaves sometimes. ex) When you input URL on the URL form on top of the Mozilla Window, if you click on the URL form and leave the mouse cursor inside the URL form for a moment, a tooltip will appear and deprive the focus from the URL form.
Status: UNCONFIRMED → NEW
Ever confirmed: true
I need a reviewer on this to verify that those files won't affect other builds than BeOS. I will then proceed with review on BeOS. Danm?
Status: NEW → ASSIGNED
Tabs :-( all files are in src/beos/ :-)
Keywords: patch, review
Patch has been checked in.
cls you've apply that patch also? (why it's still open? should we mark it as resolve/fixed?)
Yes, it should be marked fixed. I got distracted and forgot to change it earlier.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
v
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: