зеркало из https://github.com/mozilla/pjs.git
Adding in check for left mouse button when double clicking, bug 191804.
This commit is contained in:
Родитель
8fa322490f
Коммит
7a2f3b007c
|
@ -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 );
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче