I found some example code on the web, I'll see if we're doing something
like this

function KillSpaceBar(e) {
    var code;
    e = e || window.event;
    if (e.keyCode) {
        code = e.keyCode;
    } else if (e.which) {
        code = e.which;
    }
    if (code == 32) {
        e.cancelBubble = true;
        e.returnValue = false;

        if (e.stopPropagation) {
            e.stopPropagation();
            e.preventDefault();
        }
        return false;
    }
}





On Thu, Sep 23, 2010 at 12:40 PM, Max Carlson <[email protected]> wrote:

> This would be in the LzKeyboardKernel since it's a global handler.  I would
> guess we're not canceling bubbling on the event, or perhaps we need to
> return false from the event handler?
>
>
> On 9/23/10 9:25 AM, Henry Minsky wrote:
>
>> There's an open bug regarding the space bar causing browser scrolling
>> http://jira.openlaszlo.org/jira/browse/LPP-9381
>>
>>
>>      OL 5.0.x - DHTML - Opera - Component Sample - When clicking space
>>      key, the application will be scrolled
>>
>> Do you happen to know where the code in the kernel is that's supposed to
>> be suppressing the space bar keyboard
>> events from causing the browser to scroll? Safari and Opera both get the
>> whole browser window
>> scrolled when you hit the space bar while focused on a checkbox or other
>> component.  Firefox seems to
>> suppress the space bar scrolling behavior properly though.
>>
>>
>>
>>
>>
>>
>>
>> --
>> Henry Minsky
>> Software Architect
>> [email protected] <mailto:[email protected]>
>>
>>
>>


-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to