mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
parent
470a6e4401
commit
13fcc4a046
949 changed files with 95662 additions and 444 deletions
|
|
@ -1,4 +1,5 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
// vim:cindent:ts=2:et:sw=2:
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
|
@ -3055,7 +3056,11 @@ nsFrame::GetDataForTableSelection(const nsFrameSelection* aFrameSelection,
|
|||
{
|
||||
// In Browser, special 'table selection' key must be pressed for table selection
|
||||
// or when just Shift is pressed and we're already in table/cell selection mode
|
||||
#ifdef XP_MACOSX
|
||||
doTableSelection = aMouseEvent->IsMeta() || (aMouseEvent->IsShift() && selectingTableCells);
|
||||
#else
|
||||
doTableSelection = aMouseEvent->IsControl() || (aMouseEvent->IsShift() && selectingTableCells);
|
||||
#endif
|
||||
}
|
||||
if (!doTableSelection)
|
||||
return NS_OK;
|
||||
|
|
@ -3324,7 +3329,13 @@ nsFrame::HandlePress(nsPresContext* aPresContext,
|
|||
if (!frameselection || frameselection->GetDisplaySelection() == nsISelectionController::SELECTION_OFF)
|
||||
return NS_OK;//nothing to do we cannot affect selection from here
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
if (mouseEvent->IsControl())
|
||||
return NS_OK;//short circuit. hard coded for mac due to time restraints.
|
||||
bool control = mouseEvent->IsMeta();
|
||||
#else
|
||||
bool control = mouseEvent->IsControl();
|
||||
#endif
|
||||
|
||||
RefPtr<nsFrameSelection> fc = const_cast<nsFrameSelection*>(frameselection);
|
||||
if (mouseEvent->mClickCount > 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue