Adding in check for left mouse button when double clicking, bug 191804.

This commit is contained in:
mikep%oeone.com 2003-02-13 15:56:09 +00:00
Родитель 8fa322490f
Коммит 7a2f3b007c
3 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@ -228,6 +228,9 @@ function dayEventItemClick( eventBox, event )
function dayEventItemDoubleClick( eventBox, event )
{
// we only care about button 0 (left click) events
if (event.button != 0) return;
editEvent( eventBox.calendarEventDisplay.event );
if ( event )
@ -278,6 +281,9 @@ function dayViewHourContextClick( event )
function dayViewHourDoubleClick( event )
{
// we only care about button 0 (left click) events
if (event.button != 0) return;
var startDate = gCalendarWindow.dayView.getNewEventDate();
newEvent( startDate );
@ -324,6 +330,9 @@ function weekEventItemClick( eventBox, event )
function weekEventItemDoubleClick( eventBox, event )
{
// we only care about button 0 (left click) events
if (event.button != 0) return;
editEvent( eventBox.calendarEventDisplay.event );
if ( event )
@ -379,6 +388,9 @@ function weekViewContextClick( event )
function weekViewHourDoubleClick( event )
{
// we only care about button 0 (left click) events
if (event.button != 0) return;
var startDate = gCalendarWindow.weekView.getNewEventDate();
newEvent( startDate );
@ -424,6 +436,9 @@ function monthEventBoxClickEvent( eventBox, event )
function monthEventBoxDoubleClickEvent( eventBox, event )
{
// we only care about button 0 (left click) events
if (event.button != 0) return;
gCalendarWindow.monthView.clearSelectedDate();
editEvent( eventBox.calendarEventDisplay.event );

Просмотреть файл

@ -241,6 +241,9 @@ function formatUnifinderEventTime( time )
function unifinderDoubleClickEvent( event )
{
// we only care about button 0 (left click) events
if (event.button != 0) return;
// find event by id
var calendarEvent = getCalendarEventFromEvent( event );

Просмотреть файл

@ -163,6 +163,9 @@ function getSelectedToDo()
function modifyToDoCommand( event )
{
// we only care about button 0 (left click) events
if (event.button != 0) return;
//open the edit todo dialog box
var ThisToDo = getToDoFromEvent( event );